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
fib_iter gen 8 8 902 0.008
modules gen 2 2 188 0.009
fib_recursive gen 11 11 894 0.012
loops gen 4 3 302 0.013
asdl_generated gen 7 11 382 0.019
parse gen 26 19 782 0.033
scoped_resource gen 48 42 1,036 0.046
tuple_return_value gen 15 18 194 0.078
files gen 7 8 77 0.096
classes gen 3 3 23 0.139
containers gen 16 14 113 0.140
gc_stack_roots gen 2 2 12 0.149
length gen 44 45 210 0.210
cartesian gen 91 84 336 0.271
escape gen 105 99 359 0.293
cgi gen 269 268 527 0.510
control_flow gen 207 159 113 1.821
varargs gen 32 20 12 2.675
pea_hello gen NA NA 5 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.5 4.5 12.2 0.36
gc_stack_roots gen 3.4 3.5 8.5 0.40
scoped_resource gen 3.5 3.7 8.4 0.42
loops gen 3.7 3.7 8.7 0.42
asdl_generated gen 3.7 3.7 8.5 0.43
files gen 3.7 3.7 8.5 0.43
cartesian gen 3.7 3.5 8.4 0.44
cgi gen 3.7 3.7 8.4 0.44
control_flow gen 3.7 3.7 8.4 0.44
escape gen 3.7 3.7 8.4 0.44
parse gen 3.9 3.8 9.0 0.44
fib_recursive gen 3.8 3.8 8.5 0.45
length gen 3.8 3.8 8.5 0.45
modules gen 3.8 3.8 8.5 0.45
fib_iter gen 3.8 3.7 8.4 0.45
tuple_return_value gen 3.8 3.7 8.4 0.45
containers gen 28.4 28.6 49.1 0.58
varargs gen 5.5 5.5 8.4 0.66
pea_hello gen NA NA 8.1 NA

System Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
cartesian gen 0 4 4 0.000
cgi gen 0 0 4 0.000
classes gen 0 0 16 0.000
containers gen 0 0 32 0.000
control_flow gen 0 4 8 0.000
escape gen 0 4 8 0.000
fib_iter gen 0 0 4 0.000
fib_recursive gen 0 0 16 0.000
files gen 0 0 8 0.000
gc_stack_roots gen 0 0 8 0.000
length gen 0 0 12 0.000
loops gen 0 0 4 0.000
modules gen 0 0 8 0.000
scoped_resource gen 0 4 4 0.000
parse gen 4 8 16 0.273
asdl_generated gen 4 0 8 0.451
tuple_return_value gen 4 0 8 0.470
varargs gen 36 45 67 0.531
pea_hello gen NA NA 14 NA

raw benchmark files