Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add benchmark for xamarin #518

Open
dpvreony opened this issue May 22, 2020 · 0 comments
Open

add benchmark for xamarin #518

dpvreony opened this issue May 22, 2020 · 0 comments
Labels

Comments

@dpvreony
Copy link
Member

Add a benchmark runner for xamarin. will help quantify potential fixes to #421

Colt Bauman 3:11 AM

For anyone interested, last month a PR was merged into BenchmarkDotNet to support running on iOS and Android. Pretty sweet. dotnet/BenchmarkDotNet#1360
Not published to Nuget yet but available on their CI Nuget feed.
jonathanpeppersjonathanpeppers
#1360 Basic BenchmarkDotNet support for Xamarin
Fixes: #1343
This is basically an "MVP" of Xamarin support with BenchmarkDotNet.
At a high level:

  1. Simple benchmarks work with default config settings.
  2. You can write a Xamarin.Forms app that runs benchmarks and displays
    the results. I added a very basic sample of this.
    Some of the details to get this working:
    • ConsoleExitHandler.CancelKeypress throws
    PlatformNotSupportedException on Xamarin platforms. Just ignore
    this exception.
    Show more
    Comments
    4
    https://github.com/dotnet/BenchmarkDotNet|dotnet/BenchmarkDotNetdotnet/BenchmarkDotNet | Jan 27th | Added by GitHub
    (526 kB)
    https://user-images.githubusercontent.com/840039/73184210-b105fb80-40e1-11ea-9efb-d29fe4d08c79.png
    👍
    3
    🔥
    2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant