Skip to content

Instantly share code, notes, and snippets.

@moh-sushi
Created October 12, 2017 11:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moh-sushi/0c3042bffc2e18f234e54e78efaa8b87 to your computer and use it in GitHub Desktop.
Save moh-sushi/0c3042bffc2e18f234e54e78efaa8b87 to your computer and use it in GitHub Desktop.
benchmark for StringUtil#replace executed with changes of #439
Benchmark Mode Cnt Score Error Units
StringUtilReplaceBenchmark.testStringReplaceLongStringNoMatch thrpt 21 3934305,776 ± 257369,463 ops/s
StringUtilReplaceBenchmark.testStringReplaceLongStringOneMatch thrpt 21 964201,767 ± 29390,765 ops/s
StringUtilReplaceBenchmark.testStringReplaceLongStringSeveralMatches thrpt 21 742069,544 ± 23570,739 ops/s
StringUtilReplaceBenchmark.testStringReplaceShortStringNoMatch thrpt 21 5079240,512 ± 304600,596 ops/s
StringUtilReplaceBenchmark.testStringReplaceShortStringOneMatch thrpt 21 2663456,731 ± 101788,369 ops/s
StringUtilReplaceBenchmark.testStringReplaceShortStringSeveralMatches thrpt 21 1571368,685 ± 63015,210 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceLongStringNoMatch thrpt 21 14538981,034 ± 616491,342 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceLongStringOneMatch thrpt 21 4197663,786 ± 177344,595 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceLongStringSeveralMatches thrpt 21 2273017,680 ± 152694,666 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceShortStringNoMatch thrpt 21 91826178,198 ± 3756497,470 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceShortStringOneMatch thrpt 21 6634718,261 ± 356623,972 ops/s
StringUtilReplaceBenchmark.testApacheStringUtilsReplaceShortStringSeveralMatches thrpt 21 3575891,556 ± 224359,472 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceLongStringNoMatch thrpt 21 15239011,118 ± 538904,810 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceLongStringOneMatch thrpt 21 4730371,826 ± 111518,379 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceLongStringSeveralMatches thrpt 21 2518478,475 ± 101538,312 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceShortStringNoMatch thrpt 21 102563694,223 ± 6331277,926 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceShortStringOneMatch thrpt 21 10414391,950 ± 425745,366 ops/s
StringUtilReplaceBenchmark.testStringUtilReplaceShortStringSeveralMatches thrpt 21 5189481,261 ± 186646,931 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment