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 | 8 | 8 | 900 | 0.008 |
modules | gen | 2 | 0 | 192 | 0.009 |
fib_recursive | gen | 11 | 11 | 885 | 0.012 |
loops | gen | 4 | 3 | 297 | 0.012 |
asdl_generated | gen | 5 | 7 | 379 | 0.014 |
containers | gen | 4 | 10 | 99 | 0.039 |
parse | gen | 30 | 23 | 764 | 0.040 |
scoped_resource | gen | 47 | 46 | 1,034 | 0.046 |
tuple_return_value | gen | 21 | 18 | 191 | 0.107 |
files | gen | 7 | 7 | 68 | 0.110 |
classes | gen | 3 | 0 | 19 | 0.167 |
length | gen | 44 | 40 | 205 | 0.215 |
cartesian | gen | 85 | 81 | 323 | 0.262 |
escape | gen | 103 | 101 | 357 | 0.288 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.479 |
cgi | gen | 268 | 240 | 500 | 0.537 |
control_flow | gen | 205 | 156 | 110 | 1.866 |
varargs | gen | 27 | 15 | 13 | 2.155 |
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 |
parse | gen | 3.8 | 3.7 | 7.6 | 0.50 |
scoped_resource | gen | 3.5 | 3.8 | 7.1 | 0.50 |
asdl_generated | gen | 3.5 | 3.7 | 6.9 | 0.51 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
files | gen | 3.5 | 3.8 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
cartesian | gen | 3.7 | 3.5 | 7.1 | 0.52 |
fib_recursive | gen | 3.7 | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.8 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
cgi | gen | 3.8 | 3.7 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.7 | 6.9 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.9 | 6.9 | 0.55 |
control_flow | gen | 3.8 | 3.9 | 6.8 | 0.56 |
containers | gen | 28.7 | 28.6 | 47.6 | 0.60 |
varargs | gen | 5.4 | 5.6 | 7.1 | 0.76 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 12 | 8 | 0.000 |
classes | gen | 0 | 3 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
length | gen | 0 | 4 | 8 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
parse | gen | 0 | 4 | 4 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
containers | gen | 12 | 5 | 36 | 0.325 |
varargs | gen | 39 | 50 | 59 | 0.660 |
control_flow | gen | 4 | 4 | 4 | 0.969 |
cartesian | gen | 8 | 4 | 8 | 1.010 |
asdl_generated | gen | 5 | 4 | 4 | 1.340 |
escape | gen | 4 | 4 | 0 | inf |
loops | gen | 0 | 0 | 0 | NA |