Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
fib_iter | gen | 4 | 8 | 890 | 0.004 |
modules | gen | 2 | 2 | 217 | 0.008 |
fib_recursive | gen | 11 | 11 | 893 | 0.012 |
loops | gen | 4 | 3 | 304 | 0.012 |
asdl_generated | gen | 5 | 7 | 386 | 0.014 |
parse | gen | 30 | 23 | 776 | 0.039 |
scoped_resource | gen | 43 | 42 | 1,048 | 0.041 |
containers | gen | 8 | 9 | 115 | 0.066 |
files | gen | 7 | 7 | 93 | 0.079 |
tuple_return_value | gen | 15 | 11 | 193 | 0.079 |
classes | gen | 3 | 0 | 27 | 0.116 |
length | gen | 41 | 45 | 212 | 0.195 |
cartesian | gen | 87 | 78 | 339 | 0.257 |
escape | gen | 103 | 98 | 358 | 0.288 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.441 |
varargs | gen | 15 | 15 | 33 | 0.464 |
cgi | gen | 249 | 252 | 523 | 0.477 |
control_flow | gen | 212 | 160 | 119 | 1.779 |
pea_hello | gen | NA | NA | 9 | NA |
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.3 | 4.5 | 12.3 | 0.35 |
asdl_generated | gen | 3.5 | 3.7 | 8.5 | 0.42 |
cgi | gen | 3.5 | 3.5 | 8.5 | 0.42 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.4 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.0 | 0.42 |
cartesian | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.5 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.8 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.9 | 8.4 | 0.44 |
files | gen | 3.7 | 3.8 | 8.4 | 0.44 |
modules | gen | 3.8 | 3.9 | 8.7 | 0.44 |
fib_iter | gen | 3.8 | 3.7 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.5 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.9 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.5 | 49.2 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.5 | 0.66 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 0 | 3 | 12 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 16 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
parse | gen | 0 | 4 | 12 | 0.000 |
cartesian | gen | 4 | 8 | 16 | 0.248 |
containers | gen | 8 | 5 | 28 | 0.273 |
cgi | gen | 4 | 0 | 12 | 0.330 |
fib_iter | gen | 4 | 0 | 8 | 0.468 |
length | gen | 4 | 0 | 8 | 0.469 |
tuple_return_value | gen | 4 | 7 | 8 | 0.484 |
scoped_resource | gen | 4 | 4 | 4 | 0.985 |
escape | gen | 4 | 4 | 4 | 0.985 |
varargs | gen | 50 | 50 | 46 | 1.096 |
asdl_generated | gen | 5 | 4 | 4 | 1.342 |
pea_hello | gen | NA | NA | 9 | NA |