Performance

Each port is a CP Lang rewrite of an accepted C++ submission from the corpus. Both programs run on the same maximum-size input where their outputs agree, compiled with g++ -std=c++17 -O2. This page is generated from the benchmark results; nothing here is typed by hand.

Median runtime
0.79x
p90 1.82x · p95 1.98x · worst 5.21x
Median peak memory
1.00x
p95 1.00x
Largest emitted file
51.8 KB
of 784 files; judges allow 64 KB

Runtime ratio, CP Lang / C++

107 ports where either side runs at least 10 ms. Below that a ratio mostly measures process start-up.

The 20 slowest ports

ProblemRuntimeC++ → CP LangMemoryEmitted
cf2022e15.21x6 → 30 ms1.00x14.1 KB
cf2066e4.74x5 → 26 ms1.00x34.4 KB
coci10c7p44.61x11 → 51 ms1.00x15.2 KB
ioi07p44.48x61 → 274 ms1.00x10.7 KB
noi07p42.23x21 → 46 ms1.00x25.4 KB
atcoder_dp_n1.98x16 → 31 ms1.00x10.6 KB
cheerio1s21.97x16 → 31 ms1.00x8.5 KB
cf2135e11.95x5 → 10 ms1.00x19.8 KB
noi14p41.93x5 → 10 ms1.00x8.8 KB
cf2124f21.92x5 → 10 ms1.00x14.7 KB
ucup4s25h1.92x5 → 10 ms1.00x13.0 KB
atcoder_dp_z1.82x26 → 47 ms1.00x12.2 KB
ioi04p21.76x66 → 117 ms1.00x11.2 KB
ioi04p41.72x224 → 385 ms1.00x12.6 KB
ioi08p11.63x56 → 92 ms1.00x18.6 KB
ioi08p41.58x61 → 97 ms1.00x12.3 KB
ucrpc21f1.50x31 → 46 ms1.00x14.0 KB
cf2178h1.42x132 → 188 ms1.00x16.9 KB
saspeed1.39x26 → 36 ms1.00x15.8 KB
coci11c4p41.37x67 → 92 ms1.00x10.7 KB

Run at 715cee7d with cpl 0.2.2, g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0, 3 timed runs per binary, x86_64 (8 cores). 367 of 1160 problems measured. Source: bench/corpus-p95-report.md.