-
Notifications
You must be signed in to change notification settings - Fork 285
Add Utf8JsonReader.GetBoolean() benchmark #2139
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
Conversation
|
|
||
| [Benchmark] | ||
| public byte GetByte() | ||
| [Benchmark(OperationsPerInvoke = OperationsPerBenchmark)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the benefit of using OperationsPerInvoke here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layomia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adamsitnik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eiriktsarpalis thank you for your contribution! Please see my comments for full details.
|
|
||
| [Benchmark] | ||
| public byte GetByte() | ||
| [Benchmark(OperationsPerInvoke = OperationsPerBenchmark)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/benchmarks/micro/libraries/System.Text.Json/Utf8JsonReader/Perf.Get.cs
Outdated
Show resolved
Hide resolved
src/benchmarks/micro/libraries/System.Text.Json/Utf8JsonReader/Perf.Get.cs
Outdated
Show resolved
Hide resolved
src/benchmarks/micro/libraries/System.Text.Json/Utf8JsonReader/Perf.Get.cs
Outdated
Show resolved
Hide resolved
adamsitnik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @eiriktsarpalis !
Add a
GetBoolean()benchmark and simplify existing benchmarks in the same class. Used by dotnet/runtime#61746.