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 |
classes | gen | 0 | 3 | 30 | 0.000 |
containers | gen | 0 | 4 | 128 | 0.000 |
fib_iter | gen | 4 | 8 | 900 | 0.004 |
fib_recursive | gen | 7 | 11 | 900 | 0.008 |
modules | gen | 2 | 2 | 192 | 0.009 |
loops | gen | 4 | 3 | 308 | 0.012 |
asdl_generated | gen | 11 | 11 | 393 | 0.027 |
scoped_resource | gen | 40 | 42 | 1,021 | 0.039 |
parse | gen | 30 | 27 | 774 | 0.039 |
files | gen | 7 | 4 | 76 | 0.097 |
tuple_return_value | gen | 19 | 11 | 195 | 0.099 |
length | gen | 44 | 38 | 210 | 0.210 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.218 |
cartesian | gen | 79 | 70 | 330 | 0.241 |
escape | gen | 91 | 96 | 354 | 0.256 |
cgi | gen | 271 | 260 | 535 | 0.506 |
varargs | gen | 20 | 28 | 23 | 0.850 |
control_flow | gen | 207 | 157 | 138 | 1.506 |
pea_hello | gen | NA | NA | 7 | 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.5 | 12.3 | 0.36 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.4 | 0.41 |
cgi | gen | 3.5 | 3.7 | 8.5 | 0.42 |
asdl_generated | gen | 3.5 | 3.7 | 8.4 | 0.42 |
parse | gen | 3.8 | 3.9 | 9.0 | 0.42 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.5 | 8.5 | 0.43 |
tuple_return_value | gen | 3.7 | 3.8 | 8.4 | 0.44 |
cartesian | gen | 3.7 | 3.7 | 8.3 | 0.44 |
fib_recursive | gen | 3.8 | 3.8 | 8.5 | 0.45 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.7 | 8.4 | 0.47 |
files | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.6 | 28.5 | 49.2 | 0.58 |
varargs | gen | 5.5 | 5.6 | 8.5 | 0.65 |
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 |
cgi | gen | 0 | 8 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
length | gen | 0 | 8 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 0 | 12 | 0.000 |
tuple_return_value | gen | 0 | 7 | 4 | 0.000 |
fib_recursive | gen | 4 | 0 | 16 | 0.226 |
classes | gen | 3 | 0 | 8 | 0.379 |
varargs | gen | 47 | 37 | 58 | 0.816 |
containers | gen | 16 | 11 | 16 | 0.975 |
scoped_resource | gen | 8 | 4 | 8 | 0.988 |
escape | gen | 16 | 8 | 12 | 1.322 |
cartesian | gen | 12 | 16 | 8 | 1.480 |
fib_iter | gen | 4 | 0 | 0 | inf |
pea_hello | gen | NA | NA | 11 | NA |