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 | 4 | 886 | 0.009 |
modules | gen | 2 | 0 | 178 | 0.010 |
fib_recursive | gen | 11 | 11 | 903 | 0.012 |
loops | gen | 4 | 0 | 302 | 0.012 |
asdl_generated | gen | 11 | 11 | 375 | 0.029 |
parse | gen | 26 | 26 | 766 | 0.033 |
scoped_resource | gen | 47 | 38 | 1,053 | 0.045 |
containers | gen | 11 | 5 | 106 | 0.106 |
files | gen | 8 | 7 | 72 | 0.106 |
tuple_return_value | gen | 20 | 15 | 186 | 0.110 |
classes | gen | 3 | 3 | 20 | 0.168 |
length | gen | 45 | 45 | 222 | 0.204 |
escape | gen | 96 | 93 | 380 | 0.251 |
cartesian | gen | 83 | 81 | 321 | 0.258 |
cgi | gen | 260 | 268 | 517 | 0.503 |
varargs | gen | 12 | 4 | 16 | 0.771 |
control_flow | gen | 212 | 163 | 109 | 1.944 |
gc_stack_roots | gen | 2 | 2 | 0 | inf |
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.7 | 0.40 |
fib_recursive | gen | 3.5 | 3.8 | 7.1 | 0.50 |
parse | gen | 3.8 | 3.7 | 7.6 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
control_flow | gen | 3.7 | 3.8 | 6.9 | 0.53 |
escape | 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 |
asdl_generated | gen | 3.8 | 3.7 | 6.9 | 0.55 |
files | 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 |
fib_iter | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.4 | 28.5 | 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 | 8 | 0.000 |
classes | gen | 0 | 0 | 12 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
length | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 2 | 4 | 0.000 |
scoped_resource | gen | 0 | 8 | 4 | 0.000 |
tuple_return_value | gen | 0 | 4 | 8 | 0.000 |
containers | gen | 4 | 9 | 29 | 0.132 |
parse | gen | 4 | 0 | 12 | 0.305 |
varargs | gen | 54 | 61 | 56 | 0.955 |
cartesian | gen | 8 | 4 | 8 | 0.982 |
escape | gen | 12 | 16 | 0 | inf |
cgi | gen | 0 | 0 | 0 | NA |
fib_recursive | gen | 0 | 0 | 0 | NA |
loops | gen | 0 | 3 | 0 | NA |