Skip to content

Instantly share code, notes, and snippets.

@moh-sushi
Created October 12, 2017 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moh-sushi/bed1da1b1482aa6a6663eb7b651bed77 to your computer and use it in GitHub Desktop.
Save moh-sushi/bed1da1b1482aa6a6663eb7b651bed77 to your computer and use it in GitHub Desktop.
benchmark for StringUtil#replace executed
Benchmark Mode Cnt Score Error Units
StringUtilReplaceBenchmark.testStringReplaceLongStringNoMatch thrpt 21 4231943,648 ± 145968,344 ops/s
StringUtilReplaceBenchmark.testStringReplaceLongStringOneMatch thrpt 21 960589,769 ± 50446,866 ops/s
StringUtilReplaceBenchmark.testStringReplaceLongStringSeveralMatches thrpt 21 698042,028 ± 25114,039 ops/s
StringUtilReplaceBenchmark.testStringReplaceShortStringNoMatch thrpt 21 4939534,378 ± 232277,992 ops/s
StringUtilReplaceBenchmark.testStringReplaceShortStringOneMatch thrpt 21 2480426,528 ± 182234,963 ops/s
StringUtilReplaceBenchmark.testStringReplaceShortStringSeveralMatches thrpt 21 1572156,763 ± 51881,339 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceLongStringNoMatch thrpt 21 16974895,472 ± 497904,528 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceLongStringOneMatch thrpt 21 4429474,726 ± 190063,578 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceLongStringSeveralMatches thrpt 21 2546356,135 ± 72724,752 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceShortStringNoMatch thrpt 21 108163979,570 ± 4541410,752 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceShortStringOneMatch thrpt 21 6932946,662 ± 244246,789 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceShortStringSeveralMatches thrpt 21 4092329,951 ± 110084,933 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceLongStringNoMatch thrpt 21 13998072,938 ± 785318,866 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceLongStringOneMatch thrpt 21 3959751,973 ± 108780,242 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceLongStringSeveralMatches thrpt 21 2014318,248 ± 34188,111 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceShortStringNoMatch thrpt 21 95019733,024 ± 3718358,119 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceShortStringOneMatch thrpt 21 6791810,199 ± 443766,137 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceShortStringSeveralMatches thrpt 21 3555989,804 ± 161158,839 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment