JMH project created for testing jsonp.
It appears, there is noticable difference between performance of JsonGeneratorImpl between 1.0.4 and 1.1.0-SNAPSHOT. Simple test, which has cached JsonProvider instance and only creates JsonGenerator and writes five string values into object demonstrates it.
Please try:
Benchmark | Mode | Cnt | Score | Error | Units |
JsonGeneratorTest.test1JsonbStringWriter | thrpt | 10 | 4484.430 | 159.659 | ops/ms |
Benchmark | Mode | Cnt | Score | Error | Units |
JsonGeneratorTest.test1JsonbStringWriter | thrpt | 10 | 3256.665 | 205.003 | ops/ms |