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 | 177 | 0.000 |
fib_recursive | gen | 7 | 11 | 937 | 0.008 |
fib_iter | gen | 8 | 8 | 874 | 0.009 |
loops | gen | 4 | 3 | 291 | 0.013 |
asdl_generated | gen | 11 | 11 | 378 | 0.028 |
parse | gen | 30 | 27 | 777 | 0.038 |
scoped_resource | gen | 43 | 41 | 1,031 | 0.042 |
containers | gen | 8 | 8 | 113 | 0.069 |
files | gen | 7 | 7 | 67 | 0.106 |
tuple_return_value | gen | 20 | 18 | 181 | 0.113 |
classes | gen | 3 | 3 | 26 | 0.122 |
length | gen | 32 | 41 | 200 | 0.161 |
cartesian | gen | 88 | 71 | 317 | 0.277 |
escape | gen | 103 | 100 | 350 | 0.294 |
gc_stack_roots | gen | 2 | 0 | 4 | 0.439 |
cgi | gen | 261 | 253 | 522 | 0.501 |
varargs | gen | 12 | 23 | 13 | 0.912 |
control_flow | gen | 206 | 161 | 118 | 1.735 |
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 | 10.8 | 0.40 |
escape | gen | 3.5 | 3.7 | 7.1 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.4 | 7.1 | 0.50 |
parse | gen | 3.8 | 3.9 | 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 |
loops | gen | 3.8 | 3.8 | 7.2 | 0.53 |
cartesian | gen | 3.7 | 3.5 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.5 | 6.9 | 0.53 |
fib_recursive | gen | 3.7 | 3.5 | 6.9 | 0.53 |
files | gen | 3.8 | 3.7 | 7.1 | 0.54 |
length | gen | 3.7 | 3.8 | 6.8 | 0.54 |
control_flow | gen | 3.8 | 3.9 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.9 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.4 | 28.6 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 0 | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 16 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 12 | 0.000 |
cartesian | gen | 4 | 16 | 12 | 0.336 |
containers | gen | 8 | 8 | 20 | 0.386 |
fib_recursive | gen | 4 | 0 | 8 | 0.449 |
modules | gen | 2 | 0 | 4 | 0.456 |
scoped_resource | gen | 4 | 4 | 8 | 0.495 |
varargs | gen | 54 | 43 | 59 | 0.912 |
escape | gen | 4 | 4 | 4 | 0.996 |
length | gen | 12 | 4 | 8 | 1.505 |
cgi | gen | 8 | 0 | 4 | 1.972 |
control_flow | gen | 4 | 0 | 0 | inf |