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_iter gen 8 8 889 0.009
modules gen 2 2 177 0.010
fib_recursive gen 11 11 895 0.012
asdl_generated gen 7 7 377 0.019
parse gen 26 23 758 0.034
scoped_resource gen 39 38 1,030 0.038
containers gen 4 0 95 0.041
tuple_return_value gen 16 18 184 0.089
files gen 7 4 67 0.110
classes gen 3 3 28 0.115
length gen 45 44 202 0.222
cartesian gen 85 85 332 0.256
escape gen 96 96 347 0.275
cgi gen 255 269 527 0.484
varargs gen 20 8 32 0.605
control_flow gen 206 153 119 1.735
gc_stack_roots gen 2 2 0 inf

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 10.8 0.41
gc_stack_roots gen 3.4 3.5 6.9 0.49
length gen 3.5 3.7 7.1 0.50
parse gen 3.8 3.8 7.6 0.50
cartesian gen 3.5 3.7 6.9 0.51
cgi gen 3.5 3.7 6.9 0.51
asdl_generated gen 3.7 3.5 7.1 0.52
escape gen 3.7 3.7 7.1 0.52
modules gen 3.7 3.8 7.1 0.52
scoped_resource gen 3.7 3.7 7.1 0.52
control_flow gen 3.7 3.8 6.9 0.53
fib_recursive gen 3.7 3.5 6.9 0.53
loops gen 3.8 3.7 7.1 0.54
files gen 3.8 3.7 6.9 0.55
tuple_return_value gen 3.8 3.8 6.9 0.55
fib_iter gen 3.8 3.8 6.8 0.56
containers gen 28.5 28.7 47.6 0.60
varargs gen 5.6 5.6 6.9 0.81

System Time (milliseconds)

Lower ratios are better.

example name gen C++ C++-Souffle Python C++ : Python
cgi gen 0 0 8 0.000
classes gen 0 0 4 0.000
fib_iter gen 0 0 4 0.000
fib_recursive gen 0 0 8 0.000
files gen 0 4 8 0.000
gc_stack_roots gen 0 0 12 0.000
length gen 0 0 8 0.000
modules gen 0 0 8 0.000
parse gen 4 4 16 0.229
containers gen 12 15 44 0.265
loops gen 4 0 8 0.471
tuple_return_value gen 4 0 8 0.511
scoped_resource gen 8 8 12 0.658
asdl_generated gen 4 4 4 0.899
escape gen 8 8 8 0.986
varargs gen 47 58 40 1.162
cartesian gen 8 4 4 2.021
control_flow gen 4 8 0 inf

raw benchmark files