Skip to content

Instantly share code, notes, and snippets.

View moh-sushi's full-sized avatar

Sascha Fischer moh-sushi

View GitHub Profile
@moh-sushi
moh-sushi / benchmark statistic - jodd #439.txt
Created October 12, 2017 11:43
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 ±
@moh-sushi
moh-sushi / benchmark statistic - jodd #438.txt
Created October 12, 2017 11:19
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 ± 4
@moh-sushi
moh-sushi / jodd-issue-437-code-snippt.java
Last active December 14, 2020 00:36
jodd issue #437 - code snippet for downloading a zip file with jodd-http
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;