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 | 3 | 23 | 0.000 |
containers | gen | 0 | 8 | 113 | 0.000 |
modules | gen | 0 | 2 | 178 | 0.000 |
fib_recursive | gen | 7 | 11 | 924 | 0.008 |
fib_iter | gen | 8 | 8 | 895 | 0.008 |
loops | gen | 4 | 3 | 297 | 0.013 |
asdl_generated | gen | 11 | 11 | 371 | 0.029 |
parse | gen | 29 | 23 | 776 | 0.038 |
scoped_resource | gen | 44 | 39 | 1,034 | 0.043 |
files | gen | 7 | 4 | 71 | 0.104 |
tuple_return_value | gen | 20 | 18 | 195 | 0.105 |
length | gen | 32 | 45 | 196 | 0.165 |
escape | gen | 101 | 96 | 384 | 0.262 |
cartesian | gen | 88 | 76 | 326 | 0.271 |
gc_stack_roots | gen | 2 | 2 | 6 | 0.304 |
cgi | gen | 255 | 264 | 511 | 0.499 |
varargs | gen | 16 | 12 | 20 | 0.776 |
control_flow | gen | 211 | 162 | 113 | 1.857 |
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.6 | 10.6 | 0.41 |
cgi | gen | 3.5 | 3.7 | 7.1 | 0.50 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
asdl_generated | gen | 3.5 | 3.5 | 6.9 | 0.51 |
fib_iter | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
loops | gen | 3.7 | 3.7 | 7.1 | 0.52 |
cartesian | gen | 3.7 | 3.8 | 6.9 | 0.53 |
modules | gen | 3.8 | 3.8 | 7.1 | 0.54 |
scoped_resource | gen | 3.8 | 3.7 | 7.1 | 0.54 |
escape | gen | 3.7 | 3.7 | 6.8 | 0.54 |
control_flow | gen | 3.8 | 3.8 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.8 | 6.9 | 0.55 |
files | gen | 3.8 | 3.8 | 6.9 | 0.55 |
length | gen | 3.8 | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.7 | 6.9 | 0.55 |
containers | gen | 28.7 | 28.4 | 47.6 | 0.60 |
varargs | gen | 5.5 | 5.4 | 6.9 | 0.79 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 12 | 0.000 |
cgi | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
files | gen | 0 | 4 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 6 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 4 | 12 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 3 | 0 | 8 | 0.408 |
modules | gen | 2 | 0 | 4 | 0.445 |
scoped_resource | gen | 4 | 8 | 8 | 0.501 |
escape | gen | 4 | 8 | 8 | 0.503 |
cartesian | gen | 4 | 12 | 8 | 0.505 |
containers | gen | 16 | 8 | 24 | 0.652 |
varargs | gen | 51 | 55 | 52 | 0.970 |
length | gen | 12 | 0 | 12 | 1.008 |
fib_recursive | gen | 4 | 0 | 0 | inf |
control_flow | gen | 0 | 0 | 0 | NA |