This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ± |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ± 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jodd.http.HttpRequest; | |
import jodd.http.HttpResponse; | |
import jodd.http.ProxyInfo; | |
import jodd.http.net.SocketHttpConnectionProvider; | |
import jodd.io.FileUtil; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import java.io.File; | |
import java.io.FileOutputStream; |