Skip to content
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

Add Gson benchmarks #2

Open
m0mus opened this issue Sep 30, 2016 · 2 comments
Open

Add Gson benchmarks #2

m0mus opened this issue Sep 30, 2016 · 2 comments

Comments

@m0mus
Copy link
Owner

m0mus commented Sep 30, 2016

The goal is to compare JSONB-RI with Jackson, Genson and Gson. Each benchmark test has to be created for all these frameworks with cold and warm engine. Cold means that the engine is created in the test and warm means that the engine creation and initialization is not a part of test.

This task is about adding Gson framework to the project and add Gson benchmarks for all current tests.

@pedes
Copy link
Contributor

pedes commented Jun 17, 2017

Here are the test benchmarks results:

Benchmark Mode Cnt Score Error Units
o.eclipselink.jsonb.tests.DeserializeSimple.test1Jsonb thrpt 200 450.383 ± 14.478 ops/ms
o.eclipselink.jsonb.tests.DeserializeSimple.test2Jackson thrpt 200 3790.962 ± 86.820 ops/ms
o.eclipselink.jsonb.tests.JsonWriterTest.test1JsonbStringWriter thrpt 200 2705.855 ± 44.770 ops/ms
o.eclipselink.jsonb.tests.JsonWriterTest.test2JacksonStringWriter thrpt 200 1111.115 ± 34.379 ops/ms
o.eclipselink.jsonb.tests.JsonWriterTest.test3JsonbOuptutStream thrpt 200 582.068 ± 27.313 ops/ms
o.eclipselink.jsonb.tests.JsonWriterTest.test4JacksonOutputStream thrpt 200 1156.436 ± 37.388 ops/ms
o.eclipselink.jsonb.tests.SerializeCustomer.testJackson thrpt 200 795.814 ± 23.768 ops/ms
o.eclipselink.jsonb.tests.SerializeCustomer.testJsonb thrpt 200 165.544 ± 5.615 ops/ms
o.eclipselink.jsonb.tests.SerializeSimple.test1Jsonb thrpt 200 2499.821 ± 55.303 ops/ms
o.eclipselink.jsonb.tests.SerializeSimple.test2Jackson thrpt 200 3596.017 ± 59.059 ops/ms
o.istanbuljug.json.ConvertCollectionBenchmark.gson_to_from_list thrpt 10 1284.709 ± 50.090 ops/ms
o.istanbuljug.json.ConvertCollectionBenchmark.jackson_to_from_list thrpt 10 1712.321 ± 111.300 ops/ms
o.istanbuljug.json.ConvertMapBenchmark.gson_to_from_json thrpt 10 731.982 ± 36.291 ops/ms
o.istanbuljug.json.ConvertMapBenchmark.jackson_to_from_json thrpt 10 1441.129 ± 49.436 ops/ms
o.istanbuljug.json.ConvertMapBenchmark.jsonb_to_from_json thrpt 10 311.689 ± 9.800 ops/ms
o.istanbuljug.json.DeserializeBenchmark.gson_from_json thrpt 10 1594.001 ± 13.168 ops/ms
o.istanbuljug.json.DeserializeBenchmark.jackson_from_json thrpt 10 3039.934 ± 126.781 ops/ms
o.istanbuljug.json.DeserializeBenchmark.jsonb_from_json thrpt 10 398.613 ± 4.901 ops/ms
o.istanbuljug.json.SerializeBenchmark.gson_to_json thrpt 10 1498.673 ± 18.992 ops/ms
o.istanbuljug.json.SerializeBenchmark.jackson_to_json thrpt 10 3597.475 ± 54.568 ops/ms
o.istanbuljug.json.SerializeBenchmark.jsonb_to_json thrpt 10 2614.857 ± 39.549 ops/ms
o.istanbuljug.json.SerializeWithStackProfiler.gson_to_json thrpt 10 1512.228 ± 24.780 ops/ms
o.istanbuljug.json.SerializeWithStackProfiler.jackson_to_json thrpt 10 3617.557 ± 50.541 ops/ms
o.istanbuljug.json.SerializeWithStackProfiler.jsonb_to_json thrpt 10 2631.016 ± 99.475 ops/ms

@pedes
Copy link
Contributor

pedes commented Jun 17, 2017

@m0mus I can't assign me any issue, could you please provide us access, or in the yasson project?

Check the PR #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants