Add benchmarks for (de)serializing non-generic IEnumerable, IList, ICollection#547
Merged
adamsitnik merged 3 commits intodotnet:masterfrom Jul 18, 2019
Merged
Conversation
adamsitnik
reviewed
Jun 6, 2019
|
|
||
| [BenchmarkCategory(Categories.CoreFX, Categories.JSON)] | ||
| [Benchmark] | ||
| public ICollection DeserializeICollection() |
Member
There was a problem hiding this comment.
could you please share sample results? I wonder if there is any difference in the reported time between DeserializeIEnumerable, DeserializeIList and ICollection
ahsonkhan
approved these changes
Jun 7, 2019
| [Benchmark] | ||
| public void DeserializeIEnumerable() | ||
| { | ||
| JsonSerializer.Parse<IEnumerable>(_jsonString); |
Contributor
There was a problem hiding this comment.
return the IEnumerable just like the other tests.
Member
|
@layomia similar to other stale PRs (#478, #530, #540, #589) I have cloned your fork, updated the code and pushed some fixes. I need to make sure that we don't regress it for 3.0. PTAL at my changes BenchmarkDotNet=v0.11.3.1003-nightly, OS=Windows 10.0.18362
Intel Xeon CPU E5-1650 v4 3.60GHz, 1 CPU, 12 logical and 6 physical cores
.NET Core SDK=3.0.100-preview7-012697
[Host] : .NET Core 3.0.0-preview7-27826-20 (CoreCLR 4.700.19.32603, CoreFX 4.700.19.32613), 64bit RyuJIT
Job-QFFYAA : .NET Core 3.0.0-preview7-27826-20 (CoreCLR 4.700.19.32603, CoreFX 4.700.19.32613), 64bit RyuJIT
IterationTime=250.0000 ms MaxIterationCount=20 MinIterationCount=15
WarmupCount=1
|
Contributor
Author
|
@adamsitnik LGTM, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.