We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f782f8 commit 7ffcc2cCopy full SHA for 7ffcc2c
1 file changed
src/benchmarks/micro/corefx/System.Text.Json/Serializer/WriteJson.cs
@@ -54,6 +54,10 @@ public async Task SerializeToStream()
54
await JsonSerializer.SerializeAsync(_memoryStream, _value);
55
}
56
57
+ [BenchmarkCategory(Categories.CoreFX, Categories.JSON)]
58
+ [Benchmark]
59
+ public string SerializeObjectProperty() => JsonSerializer.Serialize(new { Prop = (object)_value });
60
+
61
[GlobalCleanup]
62
public void Cleanup() => _memoryStream.Dispose();
63
0 commit comments