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 | 4 | 4 | 921 | 0.004 |
modules | gen | 2 | 0 | 178 | 0.010 |
fib_recursive | gen | 11 | 11 | 878 | 0.012 |
loops | gen | 7 | 3 | 421 | 0.015 |
asdl_generated | gen | 11 | 11 | 388 | 0.028 |
parse | gen | 25 | 20 | 765 | 0.033 |
containers | gen | 4 | 4 | 117 | 0.033 |
scoped_resource | gen | 41 | 42 | 1,044 | 0.039 |
files | gen | 4 | 4 | 73 | 0.051 |
tuple_return_value | gen | 20 | 18 | 191 | 0.107 |
classes | gen | 3 | 0 | 19 | 0.169 |
cartesian | gen | 68 | 83 | 325 | 0.209 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.226 |
length | gen | 45 | 40 | 197 | 0.231 |
escape | gen | 101 | 91 | 341 | 0.296 |
cgi | gen | 257 | 250 | 513 | 0.501 |
varargs | gen | 19 | 12 | 28 | 0.690 |
control_flow | gen | 207 | 158 | 104 | 1.988 |
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 |
fib_iter | gen | 3.5 | 3.8 | 7.1 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.4 | 7.1 | 0.50 |
parse | gen | 3.9 | 3.9 | 7.6 | 0.52 |
cartesian | gen | 3.7 | 3.7 | 7.1 | 0.52 |
cgi | gen | 3.7 | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.5 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
length | gen | 3.7 | 3.8 | 6.9 | 0.53 |
scoped_resource | gen | 3.7 | 3.5 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
modules | gen | 3.8 | 3.8 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.8 | 6.9 | 0.57 |
tuple_return_value | gen | 3.8 | 3.8 | 6.7 | 0.57 |
containers | gen | 28.5 | 28.5 | 47.5 | 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 |
classes | gen | 0 | 3 | 11 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
length | gen | 0 | 4 | 12 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 2 | 4 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
fib_iter | gen | 4 | 4 | 8 | 0.485 |
escape | gen | 4 | 12 | 8 | 0.504 |
parse | gen | 4 | 8 | 8 | 0.520 |
containers | gen | 12 | 11 | 20 | 0.580 |
files | gen | 4 | 4 | 4 | 0.913 |
scoped_resource | gen | 8 | 4 | 8 | 1.013 |
varargs | gen | 47 | 55 | 44 | 1.053 |
cartesian | gen | 24 | 4 | 8 | 2.991 |
cgi | gen | 12 | 4 | 4 | 3.007 |
asdl_generated | gen | 0 | 0 | 0 | NA |