This project provides benchmarks based on Java Microbenchmark Harness (JMH).
The following tools are required to build and run the benchmarks.
- JDK 8 or higher
- Apache Maven 3.6.0 or higher
The commands below build all the benchmarks in this repository.
$ git clone https://github.com/leadpony/justify-benchmark.git
$ cd justify-benchmark
$ mvn package
The command below runs all the benchmarks.
$ ./run-all.sh
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 180894.245 ± 4067.411 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 153173.225 ± 3042.622 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 20585.759 ± 515.773 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 23902.462 ± 773.167 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 106.323 ± 4.529 ops/s
JustifyBenchmark.parseAndValidate schema.json thrpt 25 11011.834 ± 203.812 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 188591.910 ± 2931.478 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 151639.353 ± 14021.231 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 18883.871 ± 3086.774 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 23583.374 ± 257.587 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 106.983 ± 3.648 ops/s
JustifyBenchmark.parseAndValidate schema.json thrpt 25 11686.598 ± 97.262 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 178765.047 ± 5371.388 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 151768.189 ± 2779.978 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 20793.098 ± 234.020 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 24825.132 ± 292.183 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 104.572 ± 1.054 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 176319.838 ± 2812.802 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 151570.404 ± 5302.539 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 21117.274 ± 402.102 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 23705.672 ± 292.519 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 105.036 ± 1.136 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 143191.831 ± 4376.383 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 133888.632 ± 2718.851 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 18942.186 ± 377.493 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 22478.392 ± 423.481 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 80.148 ± 0.520 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 117395.923 ± 9984.155 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 129534.518 ± 3788.073 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 19408.803 ± 628.075 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 23242.643 ± 544.392 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 82.310 ± 1.067 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 139406.510 ± 3037.361 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 136613.763 ± 2140.119 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 20145.141 ± 215.785 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 23716.190 ± 207.411 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 81.769 ± 1.947 ops/s
Benchmark (name) Mode Cnt Score Error Units
JustifyBenchmark.parseAndValidate product.json thrpt 25 137399.197 ± 2353.472 ops/s
JustifyBenchmark.parseAndValidate product-invalid.json thrpt 25 125964.076 ± 3037.078 ops/s
JustifyBenchmark.parseAndValidate fstab.json thrpt 25 17933.087 ± 256.719 ops/s
JustifyBenchmark.parseAndValidate fstab-invalid.json thrpt 25 22411.869 ± 267.345 ops/s
JustifyBenchmark.parseAndValidate countries.json thrpt 25 64.580 ± 0.464 ops/s