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 | 31 | 0.000 |
loops | gen | 0 | 0 | 291 | 0.000 |
fib_iter | gen | 4 | 8 | 896 | 0.004 |
modules | gen | 2 | 0 | 192 | 0.009 |
fib_recursive | gen | 11 | 11 | 884 | 0.012 |
asdl_generated | gen | 11 | 11 | 382 | 0.028 |
containers | gen | 4 | 0 | 113 | 0.033 |
parse | gen | 30 | 22 | 786 | 0.038 |
files | gen | 4 | 4 | 90 | 0.041 |
scoped_resource | gen | 44 | 45 | 1,026 | 0.043 |
tuple_return_value | gen | 19 | 18 | 195 | 0.098 |
length | gen | 41 | 46 | 204 | 0.200 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.232 |
cartesian | gen | 84 | 80 | 336 | 0.251 |
escape | gen | 101 | 95 | 363 | 0.277 |
varargs | gen | 12 | 23 | 28 | 0.447 |
cgi | gen | 254 | 263 | 525 | 0.484 |
control_flow | gen | 209 | 156 | 115 | 1.823 |
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.5 | 12.5 | 0.35 |
cartesian | gen | 3.4 | 3.5 | 8.4 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.4 | 8.4 | 0.41 |
parse | gen | 3.8 | 3.7 | 9.1 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_iter | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.7 | 3.7 | 8.5 | 0.43 |
scoped_resource | gen | 3.7 | 3.7 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
fib_recursive | gen | 3.8 | 3.7 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.7 | 8.5 | 0.46 |
tuple_return_value | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.5 | 49.2 | 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 |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
cgi | gen | 0 | 4 | 4 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 12 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 11 | 0.000 |
modules | gen | 0 | 2 | 4 | 0.000 |
parse | gen | 0 | 4 | 4 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 4 | 3 | 12 | 0.304 |
files | gen | 4 | 4 | 12 | 0.311 |
length | gen | 4 | 0 | 12 | 0.340 |
containers | gen | 11 | 14 | 32 | 0.349 |
classes | gen | 3 | 0 | 8 | 0.407 |
fib_iter | gen | 4 | 0 | 8 | 0.470 |
scoped_resource | gen | 4 | 0 | 8 | 0.497 |
cartesian | gen | 8 | 4 | 12 | 0.671 |
varargs | gen | 53 | 42 | 51 | 1.042 |
escape | gen | 4 | 8 | 0 | inf |
pea_hello | gen | NA | NA | 4 | NA |