Skip to content

Instantly share code, notes, and snippets.

@Slakah
Last active October 22, 2018 08:41
Show Gist options
  • Save Slakah/6fcec1b7419ee299375652a924d32fa5 to your computer and use it in GitHub Desktop.
Save Slakah/6fcec1b7419ee299375652a924d32fa5 to your computer and use it in GitHub Desktop.
fastparse1 vs fastparse2 uritemplate4s benchmark
# fastparse1
> bench/jmh:run -i 1 -r 1s -wi 1 -w 1s
[info] Benchmark Mode Cnt Score Error Units
[info] HandyUriTemplatesBench.expandTemplate thrpt 5 273134.812 ± 14481.192 ops/s
[info] HandyUriTemplatesBench.parseFail thrpt 5 282972.904 ± 11961.796 ops/s
[info] HandyUriTemplatesBench.parseSuccess thrpt 5 308294.189 ± 82112.451 ops/s
[info] Uritemplate4sBench.expandTemplate thrpt 5 75346.587 ± 13802.235 ops/s
[info] Uritemplate4sBench.parseFail thrpt 5 262814.309 ± 56332.194 ops/s
[info] Uritemplate4sBench.parseSuccess thrpt 5 136334.699 ± 6510.463 ops/s
# fastparse2
[info] Benchmark Mode Cnt Score Error Units
[info] HandyUriTemplatesBench.expandTemplate thrpt 5 214664.084 ± 51828.374 ops/s
[info] HandyUriTemplatesBench.parseFail thrpt 5 259021.292 ± 51303.968 ops/s
[info] HandyUriTemplatesBench.parseSuccess thrpt 5 279849.550 ± 44176.926 ops/s
[info] Uritemplate4sBench.expandTemplate thrpt 5 87781.411 ± 9190.960 ops/s
[info] Uritemplate4sBench.parseFail thrpt 5 556001.092 ± 37210.224 ops/s
[info] Uritemplate4sBench.parseSuccess thrpt 5 49.696 ± 5.912 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment