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
loops gen 0 3 296 0.000
modules gen 2 2 232 0.008
fib_iter gen 8 8 941 0.008
fib_recursive gen 11 11 891 0.012
asdl_generated gen 5 11 378 0.014
parse gen 27 16 763 0.036
scoped_resource gen 48 42 1,039 0.046
containers gen 8 10 110 0.072
tuple_return_value gen 19 19 183 0.106
files gen 7 8 67 0.111
classes gen 3 3 20 0.171
length gen 45 46 206 0.219
cartesian gen 75 72 324 0.232
varargs gen 8 16 24 0.338
escape gen 142 86 365 0.388
gc_stack_roots gen 2 0 4 0.460
cgi gen 269 265 523 0.515
control_flow gen 208 159 110 1.894
pea_hello gen NA NA 7 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.3 12.2 0.38
parse gen 3.8 3.8 9.1 0.42
cartesian gen 3.5 3.4 8.4 0.42
fib_recursive gen 3.5 3.7 8.4 0.42
cgi gen 3.7 3.7 8.5 0.43
control_flow gen 3.7 3.8 8.5 0.43
files gen 3.7 3.8 8.5 0.43
modules gen 3.7 3.8 8.5 0.43
scoped_resource gen 3.7 3.8 8.5 0.43
asdl_generated gen 3.7 3.7 8.4 0.44
fib_iter gen 3.7 3.8 8.4 0.44
gc_stack_roots gen 3.7 3.4 8.4 0.44
length gen 3.7 3.8 8.4 0.44
loops gen 3.7 3.7 8.4 0.44
tuple_return_value gen 3.7 3.8 8.3 0.44
escape gen 3.8 3.4 8.5 0.45
containers gen 28.5 28.5 49.1 0.58
varargs gen 5.4 5.4 8.5 0.63
pea_hello gen NA NA 8.1 NA

System Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
cgi gen 0 4 8 0.000
classes gen 0 0 20 0.000
control_flow gen 0 4 12 0.000
escape gen 0 16 4 0.000
fib_iter gen 0 0 4 0.000
fib_recursive gen 0 0 8 0.000
files gen 0 0 16 0.000
gc_stack_roots gen 0 2 16 0.000
length gen 0 0 8 0.000
modules gen 0 0 8 0.000
scoped_resource gen 0 4 4 0.000
tuple_return_value gen 0 4 16 0.000
containers gen 8 5 35 0.223
parse gen 4 12 12 0.324
asdl_generated gen 5 0 12 0.456
loops gen 4 0 8 0.538
cartesian gen 16 12 16 1.000
varargs gen 57 51 57 1.013
pea_hello gen NA NA 11 NA

raw benchmark files