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 | 15 | 0.000 |
fib_iter | gen | 8 | 8 | 879 | 0.009 |
modules | gen | 2 | 2 | 170 | 0.010 |
loops | gen | 4 | 3 | 312 | 0.012 |
fib_recursive | gen | 11 | 11 | 882 | 0.012 |
asdl_generated | gen | 5 | 11 | 379 | 0.014 |
parse | gen | 25 | 19 | 791 | 0.032 |
scoped_resource | gen | 41 | 38 | 1,093 | 0.037 |
containers | gen | 10 | 5 | 103 | 0.101 |
tuple_return_value | gen | 20 | 19 | 189 | 0.107 |
files | gen | 7 | 4 | 68 | 0.110 |
length | gen | 40 | 37 | 202 | 0.199 |
cartesian | gen | 82 | 74 | 328 | 0.251 |
escape | gen | 103 | 105 | 346 | 0.297 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.445 |
cgi | gen | 267 | 264 | 505 | 0.528 |
varargs | gen | 21 | 21 | 28 | 0.745 |
control_flow | gen | 204 | 160 | 102 | 2.003 |
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.7 | 0.40 |
parse | gen | 3.8 | 3.8 | 7.6 | 0.50 |
escape | gen | 3.5 | 3.7 | 6.9 | 0.51 |
fib_recursive | 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.5 | 7.1 | 0.52 |
gc_stack_roots | gen | 3.7 | 3.4 | 7.1 | 0.52 |
cgi | gen | 3.7 | 3.5 | 6.9 | 0.53 |
scoped_resource | gen | 3.7 | 3.7 | 6.9 | 0.53 |
tuple_return_value | gen | 3.7 | 3.7 | 6.9 | 0.53 |
files | gen | 3.8 | 3.7 | 7.1 | 0.54 |
length | gen | 3.8 | 3.8 | 7.1 | 0.54 |
loops | gen | 3.8 | 3.8 | 7.1 | 0.54 |
modules | gen | 3.8 | 3.7 | 7.1 | 0.54 |
control_flow | gen | 3.8 | 3.9 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.5 | 28.6 | 47.8 | 0.60 |
varargs | gen | 5.4 | 5.6 | 6.9 | 0.77 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cgi | gen | 0 | 4 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 12 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
containers | gen | 5 | 9 | 35 | 0.147 |
classes | gen | 3 | 0 | 15 | 0.214 |
control_flow | gen | 4 | 0 | 12 | 0.340 |
parse | gen | 4 | 8 | 12 | 0.349 |
escape | gen | 4 | 4 | 8 | 0.492 |
length | gen | 4 | 8 | 8 | 0.507 |
scoped_resource | gen | 7 | 8 | 8 | 0.926 |
cartesian | gen | 8 | 12 | 8 | 1.028 |
varargs | gen | 45 | 45 | 44 | 1.042 |
asdl_generated | gen | 5 | 0 | 4 | 1.333 |