Warning: session_start(): open(/var/lib/php/sessions/sess_alsslcrkiqdga0icth7orja5su, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
// Typical results: Would be able to do 100M characters with -Xmx12G if it wasn't for the final decoding step...
// So 95M should probably work.
// ~5-7 us per character
!include once #1028521 // 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 lc = lineComp_compressTextAsChars(compressor, input);
time = sysNow()-time;
printBenchResult("complexity: " + lcRoughComplexity(lc), time, n);
}
}