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 | 0 | 23 | 0.000 |
loops | gen | 0 | 0 | 303 | 0.000 |
modules | gen | 0 | 2 | 172 | 0.000 |
fib_iter | gen | 7 | 4 | 890 | 0.008 |
fib_recursive | gen | 12 | 11 | 883 | 0.013 |
asdl_generated | gen | 11 | 11 | 372 | 0.029 |
scoped_resource | gen | 32 | 46 | 1,027 | 0.031 |
parse | gen | 25 | 19 | 770 | 0.033 |
containers | gen | 8 | 7 | 103 | 0.074 |
tuple_return_value | gen | 21 | 15 | 194 | 0.107 |
files | gen | 7 | 4 | 67 | 0.109 |
length | gen | 41 | 37 | 205 | 0.202 |
cartesian | gen | 72 | 83 | 329 | 0.220 |
escape | gen | 93 | 104 | 339 | 0.274 |
cgi | gen | 269 | 264 | 508 | 0.529 |
varargs | gen | 29 | 8 | 15 | 1.876 |
control_flow | gen | 209 | 157 | 102 | 2.053 |
gc_stack_roots | gen | 0 | 0 | 0 | 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.3 | 4.3 | 10.7 | 0.40 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
modules | gen | 3.5 | 3.7 | 6.8 | 0.52 |
asdl_generated | gen | 3.7 | 3.5 | 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.8 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 3.8 | 6.9 | 0.53 |
cartesian | gen | 3.8 | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.7 | 7.1 | 0.54 |
fib_recursive | gen | 3.7 | 3.7 | 6.8 | 0.54 |
length | gen | 3.7 | 3.8 | 6.8 | 0.54 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
scoped_resource | gen | 3.8 | 3.5 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.8 | 0.56 |
containers | gen | 28.6 | 28.7 | 47.5 | 0.60 |
varargs | gen | 5.5 | 5.6 | 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 |
cgi | gen | 0 | 4 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 12 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
tuple_return_value | gen | 0 | 4 | 8 | 0.000 |
gc_stack_roots | gen | 2 | 2 | 12 | 0.153 |
modules | gen | 2 | 0 | 12 | 0.169 |
containers | gen | 8 | 7 | 32 | 0.240 |
parse | gen | 4 | 8 | 12 | 0.355 |
classes | gen | 3 | 3 | 8 | 0.414 |
loops | gen | 4 | 3 | 8 | 0.464 |
varargs | gen | 37 | 57 | 58 | 0.643 |
escape | gen | 12 | 0 | 12 | 1.013 |
length | gen | 4 | 7 | 4 | 1.048 |
scoped_resource | gen | 16 | 0 | 8 | 1.998 |
cartesian | gen | 20 | 4 | 8 | 2.537 |
fib_recursive | gen | 0 | 0 | 0 | NA |