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 | 884 | 0.009 |
modules | gen | 2 | 0 | 190 | 0.011 |
fib_recursive | gen | 11 | 11 | 878 | 0.012 |
loops | gen | 4 | 3 | 300 | 0.014 |
asdl_generated | gen | 7 | 7 | 376 | 0.019 |
parse | gen | 21 | 27 | 770 | 0.027 |
containers | gen | 4 | 5 | 117 | 0.034 |
scoped_resource | gen | 48 | 42 | 1,015 | 0.048 |
tuple_return_value | gen | 16 | 15 | 184 | 0.087 |
files | gen | 7 | 4 | 77 | 0.096 |
classes | gen | 3 | 3 | 31 | 0.106 |
length | gen | 32 | 40 | 198 | 0.162 |
cartesian | gen | 87 | 81 | 323 | 0.269 |
escape | gen | 107 | 111 | 351 | 0.304 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.435 |
cgi | gen | 255 | 263 | 510 | 0.499 |
control_flow | gen | 210 | 160 | 109 | 1.921 |
varargs | gen | 29 | 8 | 8 | 3.611 |
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 | 10.8 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.5 | 6.8 | 0.50 |
parse | gen | 3.8 | 3.9 | 7.6 | 0.50 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
modules | gen | 3.5 | 3.8 | 6.9 | 0.51 |
asdl_generated | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.8 | 6.9 | 0.53 |
files | gen | 3.7 | 3.5 | 6.9 | 0.53 |
scoped_resource | gen | 3.7 | 3.8 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.7 | 7.1 | 0.54 |
cartesian | gen | 3.8 | 3.5 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.9 | 0.55 |
length | gen | 3.8 | 3.7 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.7 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.4 | 28.6 | 47.8 | 0.60 |
varargs | gen | 5.6 | 5.5 | 6.9 | 0.81 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 4 | 8 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
escape | gen | 0 | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 2 | 4 | 0.000 |
scoped_resource | gen | 0 | 4 | 12 | 0.000 |
cartesian | gen | 4 | 4 | 8 | 0.496 |
tuple_return_value | gen | 4 | 4 | 8 | 0.501 |
varargs | gen | 37 | 58 | 64 | 0.580 |
containers | gen | 12 | 9 | 20 | 0.590 |
asdl_generated | gen | 4 | 4 | 4 | 0.903 |
length | gen | 12 | 4 | 8 | 1.517 |
parse | gen | 8 | 0 | 4 | 2.082 |
classes | gen | 0 | 0 | 0 | NA |
files | gen | 0 | 4 | 0 | NA |