-
Notifications
You must be signed in to change notification settings - Fork 386
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
Adding benchmark project #637
Conversation
Pretty cool! My results: BenchmarkDotNet=v0.11.4, OS=Windows 10.0.14393.2791 (1607/AnniversaryUpdate/Redstone1)
Intel Xeon CPU E5-2687W v3 3.10GHz, 2 CPU, 20 logical and 20 physical cores
Frequency=3020348 Hz, Resolution=331.0877 ns, Timer=TSC
[Host] : .NET Framework 4.7.1 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3324.0
DefaultJob : .NET Framework 4.7.1 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3324.0
|
I switched over everything to class and here are the results on the same machine: BenchmarkDotNet=v0.11.4, OS=Windows 10.0.14393.2791 (1607/AnniversaryUpdate/Redstone1)
Intel Xeon CPU E5-2687W v3 3.10GHz, 2 CPU, 20 logical and 20 physical cores
Frequency=3020348 Hz, Resolution=331.0877 ns, Timer=TSC
[Host] : .NET Framework 4.7.1 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3324.0
DefaultJob : .NET Framework 4.7.1 (CLR 4.0.30319.42000), 32bit LegacyJIT-v4.7.3324.0
|
Very neat, so from a first glance, looks pretty darn similar to me? |
Nothing too horrible. IQuantity_As is the only standout. That said, these are only testing existing created quantities (minus the constructor). I will add more tests that actually create and then do something with it. I think you might see differences there (due to boxing and unboxing or lack there of). |
I'm inclined to merge this @tmilnthorp , we can always improve in further PRs. It's easier to test it locally and play with it when merged. Agree? |
Sounds good to me! |
Wanted to draft a first shot at #623