Download Jar. Uses 11335K of libraries. Click here for Pure Java version (8652L/57K).
!7 // Typical results: Can do ? characters with -Xmx12G // ~? us per character !include once #1028523 // LineComp_PairIndex, new version set flag LineComp_SingleChain. p { noRegularGC(); twice { print(); go(args); } } svoid go(S[] args) { int n = parseIntOr(first(args), 1); int max = parseIntOr(second(args), 100*oneMillion()); for (; n <= max; n += (n >= tenMillion() ? tenMillion() : n)) { consoleStatus("n=" + n); Random random = repeatableRandomizer(); S input = stringFromRepF(() -> charPlus('a', randomInt(random, 3)), n); long time = sysNow(); new LineCompCompressor compressor; compressor.verboseStats = true; LineCompedSingle<Char> lc = lineComp_compressTextAsChars(compressor, input); time = sysNow()-time; printBenchResult("complexity: " + lcRoughComplexity(lc), time, n); } }
Began life as a copy of #1028520
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028524 |
Snippet name: | Benchmark LineComp v3 [dev.] |
Eternal ID of this version: | #1028524/1 |
Text MD5: | 4d9e9f729fa3bee27855bfa4616ff72a |
Transpilation MD5: | b5b495b469999ecd0e74d8025415df4a |
Author: | stefan |
Category: | javax / linecomp compression |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-24 01:58:41 |
Source code size: | 869 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 303 / 976 |
Referenced in: | -