Skip to content

DSL-JSON update to 1.3.1 #6

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

Merged
merged 1 commit into from
Dec 2, 2016
Merged

Conversation

zapov
Copy link
Contributor

@zapov zapov commented Dec 1, 2016

Improved ReadMap performance

Improved ReadMap performance
@zapov
Copy link
Contributor Author

zapov commented Dec 1, 2016

Results on my AMD machine

java -Xmx256m -jar target/microbenchmarks.jar ".*DZoneReadPojo.*read1kFromStream" -wi 4 -i 5 -f 3

DZoneReadPojoBoon.read1kFromStream       thrpt   15   501.008 ±  71.127  ops/s
DZoneReadPojoDslJson.read1kFromStream    thrpt   15  2427.325 ± 356.152  ops/s
DZoneReadPojoFastjson.read1kFromStream   thrpt   15   849.603 ± 156.866  ops/s
DZoneReadPojoGSON.read1kFromStream       thrpt   15   693.557 ± 101.729  ops/s
DZoneReadPojoJackson2x.read1kFromStream  thrpt   15  1162.493 ± 126.817  ops/s
DZoneReadPojoJacksonAB.read1kFromStream  thrpt   15  1625.401 ± 213.563  ops/s
DZoneReadPojoJacksonJr.read1kFromStream  thrpt   15  1187.191 ± 170.805  ops/s
DZoneReadPojoJohnzon.read1kFromStream    thrpt   15   357.544 ±  59.778  ops/s
DZoneReadPojoJuneau.read1kFromStream     thrpt   15   333.114 ±  48.883  ops/s
DZoneReadPojoMoshi.read1kFromStream      thrpt   15   508.071 ±  89.049  ops/s```

java -Xmx256m -jar target/microbenchmarks.jar ".*DZoneReadMap.*read1kFromStream" -wi 4 -i 5 -f 3

```Benchmark                                Mode  Cnt     Score     Error  Units
DZoneReadMapBoon.read1kFromStream       thrpt   15  1021.164 ± 225.422  ops/s
DZoneReadMapDslJson.read1kFromStream    thrpt   15  1084.425 ± 191.628  ops/s
DZoneReadMapFastjson.read1kFromStream   thrpt   15   744.306 ± 110.000  ops/s
DZoneReadMapGSON.read1kFromStream       thrpt   15   576.115 ± 106.031  ops/s
DZoneReadMapJackson2x.read1kFromStream  thrpt   15  1090.934 ± 157.972  ops/s
DZoneReadMapJacksonJr.read1kFromStream  thrpt   15  1105.733 ± 153.062  ops/s
DZoneReadMapJohnzon.read1kFromStream    thrpt   15   394.963 ±  53.444  ops/s
DZoneReadMapJsonIO.read1kFromStream     thrpt   15   212.960 ±  15.565  ops/s
DZoneReadMapJsonMoshi.read1kFromStream  thrpt   15   448.833 ±  58.222  ops/s
DZoneReadMapJsonParse.read1kFromStream  thrpt   15   451.339 ±  48.118  ops/s
DZoneReadMapJuneau.read1kFromStream     thrpt   15   476.257 ±  21.201  ops/s```

java -Xmx256m -jar target/microbenchmarks.jar ".*DZoneWrite.*write1kUsingStream" -wi 4 -i 5 -f 3

```Benchmark                                Mode  Cnt     Score     Error  Units
DZoneWriteBoon.write1kUsingStream       thrpt   15   927.466 ± 169.072  ops/s
DZoneWriteDslJson.write1kUsingStream    thrpt   15  7337.877 ± 581.657  ops/s
DZoneWriteFastjson.write1kUsingStream   thrpt   15  1247.622 ± 177.841  ops/s
DZoneWriteGSON.write1kUsingStream       thrpt   15   277.455 ±  62.206  ops/s
DZoneWriteJackson2x.write1kUsingStream  thrpt   15  2428.463 ± 305.576  ops/s
DZoneWriteJacksonAB.write1kUsingStream  thrpt   15  3915.334 ± 187.812  ops/s
DZoneWriteJacksonJr.write1kUsingStream  thrpt   15  2357.595 ± 344.479  ops/s
DZoneWriteJohnzon.write1kUsingStream    thrpt   15   722.107 ±  82.434  ops/s
DZoneWriteJsonIO.write1kUsingStream     thrpt   15   536.770 ±  42.303  ops/s
DZoneWriteJuneau.write1kUsingStream     thrpt   15   312.810 ±  34.623  ops/s
DZoneWriteMoshi.write1kUsingStream      thrpt   15   948.007 ± 113.746  ops/s```

@cowtowncoder cowtowncoder merged commit 0d81386 into cowtowncoder:master Dec 2, 2016
@cowtowncoder
Copy link
Owner

cowtowncoder commented Dec 2, 2016

Thanks!

Hoping to re-run at home at some point; although if you have access to wiki feel free to add alternate results from your machine? I don't need to be the single point of editing or such.
(and if you don't have access I'd be happy to give)

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

Successfully merging this pull request may close these issues.

2 participants