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 |
modules | gen | 0 | 2 | 193 | 0.000 |
fib_iter | gen | 9 | 8 | 899 | 0.009 |
fib_recursive | gen | 11 | 11 | 940 | 0.012 |
loops | gen | 4 | 3 | 304 | 0.013 |
asdl_generated | gen | 12 | 12 | 381 | 0.031 |
parse | gen | 27 | 24 | 788 | 0.034 |
containers | gen | 4 | 0 | 115 | 0.035 |
scoped_resource | gen | 44 | 43 | 1,066 | 0.042 |
tuple_return_value | gen | 20 | 18 | 184 | 0.107 |
files | gen | 8 | 8 | 69 | 0.114 |
classes | gen | 4 | 4 | 32 | 0.119 |
length | gen | 41 | 39 | 212 | 0.192 |
cartesian | gen | 87 | 71 | 354 | 0.246 |
gc_stack_roots | gen | 2 | 2 | 7 | 0.275 |
escape | gen | 97 | 100 | 350 | 0.277 |
cgi | gen | 250 | 268 | 516 | 0.485 |
varargs | gen | 32 | 16 | 32 | 0.979 |
control_flow | gen | 209 | 155 | 110 | 1.904 |
pea_hello | gen | NA | NA | 8 | 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.5 | 4.2 | 12.3 | 0.36 |
modules | gen | 3.5 | 3.8 | 8.7 | 0.41 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.5 | 0.42 |
cartesian | gen | 3.5 | 3.5 | 8.4 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.0 | 0.42 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.5 | 8.4 | 0.44 |
escape | gen | 3.7 | 3.7 | 8.4 | 0.44 |
scoped_resource | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_iter | gen | 3.8 | 3.8 | 8.5 | 0.45 |
files | gen | 3.8 | 3.7 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_recursive | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.7 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.4 | 0.45 |
containers | gen | 28.5 | 28.7 | 49.1 | 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 |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 0 | 8 | 0.000 |
control_flow | gen | 0 | 8 | 12 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
files | gen | 0 | 0 | 15 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 14 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 20 | 0.000 |
modules | gen | 2 | 0 | 8 | 0.236 |
parse | gen | 4 | 4 | 16 | 0.238 |
cgi | gen | 4 | 0 | 12 | 0.331 |
length | gen | 4 | 8 | 12 | 0.338 |
containers | gen | 12 | 15 | 32 | 0.380 |
scoped_resource | gen | 4 | 4 | 8 | 0.502 |
varargs | gen | 36 | 49 | 48 | 0.734 |
cartesian | gen | 4 | 16 | 4 | 0.997 |
escape | gen | 8 | 4 | 8 | 1.005 |
pea_hello | gen | NA | NA | 12 | NA |