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 987 0.008
fib_recursive gen 7 7 896 0.008
modules gen 2 2 184 0.009
loops gen 4 3 298 0.012
asdl_generated gen 5 7 383 0.014
parse gen 26 19 765 0.035
scoped_resource gen 44 46 1,036 0.043
tuple_return_value gen 15 15 195 0.079
files gen 8 7 76 0.099
classes gen 3 3 27 0.117
containers gen 15 14 119 0.128
length gen 38 46 213 0.176
gc_stack_roots gen 2 2 8 0.221
cartesian gen 83 78 343 0.242
escape gen 89 103 354 0.252
cgi gen 266 252 525 0.506
varargs gen 29 15 24 1.193
control_flow gen 201 162 118 1.694
pea_hello gen NA NA 15 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.3 12.2 0.37
modules gen 3.5 3.8 8.7 0.41
scoped_resource gen 3.5 3.7 8.5 0.42
cartesian gen 3.5 3.7 8.4 0.42
gc_stack_roots gen 3.5 3.5 8.4 0.42
parse gen 3.8 3.9 9.0 0.42
asdl_generated gen 3.5 3.5 8.3 0.43
cgi gen 3.7 3.5 8.5 0.43
fib_iter gen 3.7 3.7 8.5 0.43
fib_recursive gen 3.7 3.9 8.5 0.43
escape gen 3.7 3.7 8.4 0.44
loops gen 3.7 3.8 8.4 0.44
control_flow gen 3.8 3.8 8.5 0.45
files gen 3.8 3.8 8.5 0.45
length gen 3.8 3.8 8.5 0.45
tuple_return_value gen 3.8 3.8 8.4 0.45
containers gen 28.6 28.5 49.1 0.58
varargs gen 5.5 5.5 8.5 0.65
pea_hello gen NA NA 8.3 NA

System Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
classes gen 0 0 12 0.000
containers gen 0 0 24 0.000
fib_iter gen 0 0 12 0.000
files gen 0 0 8 0.000
gc_stack_roots gen 0 0 12 0.000
loops gen 0 0 8 0.000
modules gen 0 0 12 0.000
scoped_resource gen 4 0 20 0.202
parse gen 4 8 16 0.237
tuple_return_value gen 4 4 8 0.481
cgi gen 4 0 8 0.494
varargs gen 37 50 56 0.657
asdl_generated gen 5 4 8 0.675
fib_recursive gen 4 4 4 0.901
cartesian gen 8 8 8 0.991
length gen 8 0 8 1.039
control_flow gen 8 0 4 1.993
escape gen 16 0 4 4.038
pea_hello gen NA NA 4 NA

raw benchmark files