-
Notifications
You must be signed in to change notification settings - Fork 593
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
Cleaning up and adding more benchmarks. #983
Conversation
As an FYI, here are the current results of this benchmark output on my machine: BenchmarkDotNet=v0.12.1, OS=Windows 10.0.20270
Intel Core i7-10700 CPU 2.90GHz, 1 CPU, 16 logical and 8 physical cores
.NET Core SDK=5.0.101
[Host] : .NET Core 3.1.10 (CoreCLR 4.700.20.51601, CoreFX 4.700.20.51901), X64 RyuJIT
.NET 4.8 : .NET Framework 4.8 (4.8.4261.0), X64 RyuJIT
.NET Core 3.1 : .NET Core 3.1.10 (CoreCLR 4.700.20.51601, CoreFX 4.700.20.51901), X64 RyuJIT
|
I like the comparability, but how do you run a single benchmark out of them? (e.g. if you improve the decimal deserialization, I'm only interested in that one) |
ArrayReadEmpty we could improve for size 0 (return Array.Empty as it implements IList or return null as we do for table/dictionary) |
Usually if I run specific ones I like to just comment them out temporarily. When doing broader changes like optimizing something that might impact all methods for example, I'd like an easy way to run all of them. All feedback welcome :) |
Either way works I guess, It just takes some getting used to. Regarding the multiple frameworks: Is it possible to have another Program.cs which only executes short runs on one framework and your changed one for when you need a "full picture". Switching from one to the other should be possible AFAIK from within VS (not sure about VS Code). |
4fd2e90
to
92c2be5
Compare
Proposed Changes
Cleaning up the BenchmarkDotNet benchmarks and adding more so we have a better overview and impact of changes made to anything that has to do with (de)serialization of RabbitMQ primitives.
net48
target for the benchmarks as well.Types of Changes
Checklist
CONTRIBUTING.md
document