mycpp Code Generation

Measure the speedup from mycpp, and the resource usage.

Source code: oil/mycpp/examples

User Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
asdl_generated gen 0 11 378 0.000
containers gen 0 9 115 0.000
fib_iter gen 8 7 898 0.008
modules gen 2 2 193 0.011
fib_recursive gen 11 11 920 0.012
loops gen 5 3 291 0.017
parse gen 23 23 808 0.028
scoped_resource gen 48 38 1,031 0.047
tuple_return_value gen 15 15 186 0.083
gc_stack_roots gen 2 2 20 0.088
files gen 7 7 79 0.093
classes gen 3 3 23 0.137
length gen 45 45 207 0.217
cartesian gen 83 78 340 0.243
escape gen 101 93 351 0.288
varargs gen 8 15 23 0.355
cgi gen 265 250 521 0.507
control_flow gen 203 161 110 1.850
pea_hello gen NA NA 11 NA

Max Resident Set Size (MB)

Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).

example name gen C++ C++-Souffle Python C++ : Python
classes gen 4.6 4.5 12.3 0.37
parse gen 3.7 3.9 9.1 0.40
gc_stack_roots gen 3.5 3.5 8.5 0.42
cartesian gen 3.5 3.5 8.4 0.42
asdl_generated gen 3.7 3.7 8.5 0.43
escape gen 3.7 3.7 8.4 0.44
cgi gen 3.7 3.7 8.3 0.44
files gen 3.8 3.8 8.5 0.45
length gen 3.8 3.8 8.5 0.45
loops gen 3.8 3.8 8.5 0.45
modules gen 3.8 3.8 8.5 0.45
control_flow gen 3.8 3.9 8.4 0.45
fib_iter gen 3.8 3.8 8.4 0.45
fib_recursive gen 3.8 3.8 8.4 0.45
scoped_resource gen 3.8 3.7 8.4 0.45
tuple_return_value gen 3.8 3.7 8.4 0.45
containers gen 28.6 28.7 49.1 0.58
varargs gen 5.4 5.5 8.4 0.64
pea_hello gen NA NA 8.1 NA

System Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
classes gen 0 0 15 0.000
fib_iter gen 0 0 8 0.000
fib_recursive gen 0 0 4 0.000
files gen 0 0 4 0.000
gc_stack_roots gen 0 0 4 0.000
length gen 0 0 16 0.000
loops gen 0 0 12 0.000
modules gen 0 0 4 0.000
scoped_resource gen 0 8 4 0.000
tuple_return_value gen 4 4 16 0.243
escape gen 4 12 12 0.338
control_flow gen 4 0 12 0.338
cgi gen 4 4 8 0.500
containers gen 15 5 28 0.547
asdl_generated gen 11 0 12 0.892
parse gen 8 4 8 0.956
varargs gen 57 50 58 0.994
cartesian gen 8 8 8 1.032
pea_hello gen NA NA 7 NA

raw benchmark files