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 |
fib_iter | gen | 8 | 8 | 892 | 0.008 |
modules | gen | 2 | 2 | 178 | 0.011 |
fib_recursive | gen | 11 | 11 | 894 | 0.012 |
loops | gen | 4 | 3 | 294 | 0.013 |
asdl_generated | gen | 7 | 11 | 377 | 0.019 |
parse | gen | 29 | 27 | 778 | 0.038 |
scoped_resource | gen | 43 | 45 | 1,047 | 0.041 |
files | gen | 4 | 4 | 69 | 0.054 |
tuple_return_value | gen | 16 | 11 | 201 | 0.081 |
containers | gen | 16 | 10 | 100 | 0.158 |
classes | gen | 3 | 0 | 19 | 0.172 |
length | gen | 41 | 38 | 201 | 0.203 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.225 |
cartesian | gen | 89 | 80 | 326 | 0.272 |
escape | gen | 101 | 100 | 346 | 0.292 |
cgi | gen | 262 | 258 | 516 | 0.507 |
varargs | gen | 16 | 8 | 12 | 1.297 |
control_flow | gen | 205 | 165 | 111 | 1.852 |
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.5 | 10.8 | 0.41 |
loops | gen | 3.5 | 3.8 | 7.1 | 0.50 |
fib_recursive | gen | 3.5 | 3.8 | 6.9 | 0.51 |
parse | gen | 3.9 | 3.8 | 7.6 | 0.52 |
scoped_resource | gen | 3.7 | 3.8 | 7.1 | 0.52 |
gc_stack_roots | gen | 3.5 | 3.4 | 6.8 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cgi | gen | 3.7 | 3.7 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.8 | 6.9 | 0.53 |
fib_iter | gen | 3.7 | 3.8 | 6.8 | 0.54 |
control_flow | 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.9 | 6.9 | 0.55 |
cartesian | gen | 3.8 | 3.7 | 6.8 | 0.56 |
containers | gen | 28.5 | 28.5 | 47.6 | 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 |
classes | gen | 0 | 3 | 11 | 0.000 |
containers | gen | 0 | 5 | 36 | 0.000 |
control_flow | gen | 0 | 0 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 0 | 8 | 0.000 |
length | gen | 4 | 8 | 12 | 0.346 |
files | gen | 4 | 4 | 8 | 0.463 |
varargs | gen | 51 | 58 | 60 | 0.843 |
asdl_generated | gen | 4 | 0 | 4 | 0.893 |
scoped_resource | gen | 4 | 0 | 4 | 0.979 |
cartesian | gen | 4 | 8 | 4 | 1.001 |
escape | gen | 4 | 4 | 4 | 1.003 |
tuple_return_value | gen | 4 | 7 | 4 | 1.009 |
cgi | gen | 8 | 12 | 4 | 1.981 |