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 |
gc_stack_roots | gen | 0 | 2 | 4 | 0.000 |
fib_iter | gen | 8 | 8 | 893 | 0.009 |
modules | gen | 2 | 0 | 179 | 0.010 |
fib_recursive | gen | 11 | 11 | 883 | 0.012 |
loops | gen | 4 | 0 | 290 | 0.014 |
asdl_generated | gen | 8 | 12 | 369 | 0.021 |
parse | gen | 26 | 19 | 756 | 0.035 |
scoped_resource | gen | 40 | 46 | 1,028 | 0.039 |
containers | gen | 8 | 4 | 122 | 0.064 |
files | gen | 7 | 4 | 74 | 0.099 |
tuple_return_value | gen | 21 | 15 | 199 | 0.104 |
classes | gen | 3 | 0 | 28 | 0.117 |
length | gen | 45 | 44 | 204 | 0.220 |
cartesian | gen | 80 | 80 | 320 | 0.250 |
varargs | gen | 8 | 25 | 31 | 0.271 |
escape | gen | 97 | 92 | 345 | 0.281 |
cgi | gen | 256 | 265 | 525 | 0.488 |
control_flow | gen | 206 | 158 | 107 | 1.916 |
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.6 | 10.7 | 0.41 |
parse | gen | 3.8 | 3.9 | 7.7 | 0.49 |
scoped_resource | gen | 3.5 | 3.7 | 7.1 | 0.50 |
cgi | gen | 3.5 | 3.8 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.4 | 6.9 | 0.51 |
modules | gen | 3.5 | 3.8 | 6.9 | 0.51 |
asdl_generated | gen | 3.7 | 3.5 | 7.1 | 0.52 |
cartesian | gen | 3.7 | 3.7 | 7.1 | 0.52 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 3.8 | 6.9 | 0.53 |
length | gen | 3.7 | 3.8 | 6.9 | 0.53 |
fib_recursive | gen | 3.8 | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 3.7 | 6.9 | 0.55 |
loops | gen | 3.8 | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.7 | 6.9 | 0.55 |
control_flow | gen | 3.9 | 3.9 | 6.9 | 0.57 |
containers | gen | 28.6 | 28.6 | 47.5 | 0.60 |
varargs | gen | 5.5 | 5.6 | 6.8 | 0.81 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 4 | 8 | 0.000 |
classes | gen | 0 | 3 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
length | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 3 | 8 | 0.000 |
modules | gen | 0 | 2 | 4 | 0.000 |
gc_stack_roots | gen | 2 | 0 | 9 | 0.210 |
parse | gen | 4 | 8 | 16 | 0.235 |
asdl_generated | gen | 4 | 0 | 8 | 0.478 |
containers | gen | 8 | 11 | 16 | 0.500 |
control_flow | gen | 4 | 4 | 8 | 0.507 |
scoped_resource | gen | 8 | 0 | 12 | 0.665 |
cartesian | gen | 12 | 8 | 12 | 1.011 |
varargs | gen | 58 | 42 | 42 | 1.380 |
escape | gen | 8 | 12 | 4 | 2.036 |
tuple_return_value | gen | 0 | 4 | 0 | NA |