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 | 0 | 10 | 0.000 |
fib_recursive | gen | 7 | 11 | 883 | 0.008 |
fib_iter | gen | 8 | 8 | 888 | 0.009 |
modules | gen | 2 | 2 | 181 | 0.010 |
loops | gen | 4 | 3 | 298 | 0.012 |
asdl_generated | gen | 7 | 11 | 405 | 0.018 |
parse | gen | 27 | 27 | 775 | 0.034 |
scoped_resource | gen | 47 | 42 | 1,027 | 0.046 |
tuple_return_value | gen | 16 | 15 | 190 | 0.083 |
files | gen | 7 | 7 | 82 | 0.088 |
classes | gen | 3 | 0 | 35 | 0.091 |
containers | gen | 12 | 9 | 124 | 0.093 |
length | gen | 33 | 29 | 203 | 0.164 |
cartesian | gen | 90 | 83 | 335 | 0.267 |
escape | gen | 97 | 100 | 354 | 0.274 |
cgi | gen | 260 | 259 | 527 | 0.494 |
varargs | gen | 16 | 12 | 16 | 1.020 |
control_flow | gen | 207 | 159 | 118 | 1.760 |
pea_hello | gen | NA | NA | 14 | 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 | 12.3 | 0.35 |
gc_stack_roots | gen | 3.5 | 3.4 | 8.5 | 0.42 |
asdl_generated | gen | 3.5 | 3.7 | 8.4 | 0.42 |
modules | gen | 3.7 | 3.8 | 8.7 | 0.42 |
scoped_resource | gen | 3.7 | 3.5 | 8.5 | 0.43 |
cartesian | gen | 3.7 | 3.7 | 8.4 | 0.44 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
escape | gen | 3.7 | 3.5 | 8.4 | 0.44 |
parse | gen | 3.9 | 3.8 | 9.0 | 0.44 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.5 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.9 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
fib_recursive | gen | 3.8 | 3.5 | 8.3 | 0.46 |
containers | gen | 28.5 | 28.7 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.4 | 0.66 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cartesian | gen | 0 | 4 | 8 | 0.000 |
cgi | gen | 0 | 8 | 4 | 0.000 |
classes | gen | 0 | 3 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 16 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 16 | 0.000 |
scoped_resource | gen | 0 | 4 | 12 | 0.000 |
gc_stack_roots | gen | 2 | 2 | 10 | 0.185 |
containers | gen | 4 | 5 | 20 | 0.193 |
fib_recursive | gen | 4 | 0 | 12 | 0.300 |
parse | gen | 4 | 0 | 12 | 0.318 |
tuple_return_value | gen | 4 | 4 | 8 | 0.500 |
escape | gen | 8 | 0 | 12 | 0.651 |
varargs | gen | 49 | 54 | 64 | 0.765 |
length | gen | 11 | 17 | 12 | 0.927 |
control_flow | gen | 4 | 4 | 4 | 0.982 |
asdl_generated | gen | 4 | 0 | 0 | inf |
pea_hello | gen | NA | NA | 4 | NA |