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 285 0.000
fib_recursive gen 7 7 879 0.008
fib_iter gen 8 7 888 0.009
modules gen 2 0 187 0.009
asdl_generated gen 11 11 383 0.028
parse gen 26 27 775 0.034
scoped_resource gen 43 41 1,029 0.042
files gen 7 8 85 0.086
tuple_return_value gen 20 15 199 0.099
containers gen 11 10 113 0.101
classes gen 3 3 31 0.105
gc_stack_roots gen 2 2 12 0.149
length gen 40 42 206 0.196
cartesian gen 87 78 360 0.242
escape gen 105 105 349 0.300
cgi gen 256 259 530 0.483
varargs gen 15 27 12 1.291
control_flow gen 209 161 109 1.916
pea_hello gen NA NA 13 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.3 0.36
parse gen 3.8 3.8 9.1 0.42
gc_stack_roots gen 3.5 3.5 8.4 0.42
asdl_generated gen 3.7 3.8 8.5 0.43
modules gen 3.7 3.7 8.5 0.43
cartesian gen 3.7 3.7 8.4 0.44
cgi gen 3.7 3.5 8.4 0.44
escape gen 3.7 3.7 8.4 0.44
tuple_return_value gen 3.7 3.9 8.4 0.44
control_flow gen 3.8 3.8 8.5 0.45
fib_recursive gen 3.8 3.8 8.5 0.45
files gen 3.8 3.7 8.5 0.45
scoped_resource gen 3.8 3.7 8.5 0.45
fib_iter gen 3.8 3.7 8.4 0.45
loops gen 3.8 3.9 8.4 0.45
length gen 3.9 3.8 8.5 0.46
containers gen 28.7 28.5 49.1 0.58
varargs gen 5.5 5.6 8.5 0.65
pea_hello gen NA NA 8.1 NA

System Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
asdl_generated gen 0 0 8 0.000
cgi gen 0 0 4 0.000
classes gen 0 0 8 0.000
control_flow gen 0 0 12 0.000
escape gen 0 0 12 0.000
fib_iter gen 0 0 8 0.000
gc_stack_roots gen 0 0 8 0.000
modules gen 0 2 8 0.000
containers gen 4 3 28 0.135
loops gen 4 0 16 0.231
fib_recursive gen 4 4 12 0.299
scoped_resource gen 4 4 8 0.494
cartesian gen 4 8 8 0.500
length gen 4 4 8 0.509
varargs gen 50 38 67 0.740
parse gen 4 0 4 0.942
files gen 0 0 0 NA
pea_hello gen NA NA 4 NA
tuple_return_value gen 0 4 0 NA

raw benchmark files