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 | 0 | 31 | 0.000 |
fib_iter | gen | 8 | 4 | 898 | 0.008 |
modules | gen | 2 | 2 | 188 | 0.009 |
fib_recursive | gen | 11 | 7 | 920 | 0.012 |
loops | gen | 4 | 3 | 303 | 0.012 |
asdl_generated | gen | 7 | 7 | 386 | 0.018 |
containers | gen | 4 | 7 | 135 | 0.029 |
parse | gen | 27 | 23 | 778 | 0.035 |
scoped_resource | gen | 44 | 42 | 1,053 | 0.042 |
files | gen | 7 | 7 | 79 | 0.091 |
tuple_return_value | gen | 19 | 19 | 192 | 0.100 |
gc_stack_roots | gen | 2 | 0 | 16 | 0.111 |
length | gen | 45 | 41 | 205 | 0.220 |
cartesian | gen | 91 | 78 | 336 | 0.270 |
escape | gen | 105 | 95 | 356 | 0.295 |
cgi | gen | 256 | 260 | 525 | 0.487 |
varargs | gen | 16 | 23 | 24 | 0.666 |
control_flow | gen | 212 | 159 | 113 | 1.883 |
pea_hello | gen | NA | NA | 15 | 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.5 | 4.5 | 12.5 | 0.36 |
parse | gen | 3.7 | 3.8 | 8.9 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.3 | 0.41 |
cartesian | gen | 3.5 | 3.5 | 8.5 | 0.42 |
cgi | gen | 3.5 | 3.7 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.8 | 8.5 | 0.43 |
length | gen | 3.7 | 3.8 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.5 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.7 | 8.4 | 0.44 |
loops | gen | 3.7 | 3.8 | 8.4 | 0.44 |
modules | gen | 3.8 | 3.8 | 8.7 | 0.44 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.8 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.4 | 0.45 |
fib_iter | gen | 3.9 | 3.8 | 8.5 | 0.46 |
containers | gen | 28.5 | 28.6 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.5 | 8.4 | 0.66 |
pea_hello | gen | NA | NA | 8.3 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
cartesian | gen | 0 | 8 | 8 | 0.000 |
cgi | gen | 0 | 8 | 8 | 0.000 |
control_flow | gen | 0 | 4 | 8 | 0.000 |
escape | gen | 0 | 8 | 4 | 0.000 |
fib_iter | gen | 0 | 4 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 4 | 0.000 |
files | gen | 0 | 0 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 4 | 0.000 |
length | gen | 0 | 4 | 12 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 4 | 4 | 16 | 0.243 |
classes | gen | 3 | 3 | 8 | 0.413 |
varargs | gen | 48 | 42 | 56 | 0.856 |
asdl_generated | gen | 4 | 4 | 4 | 0.880 |
scoped_resource | gen | 4 | 4 | 4 | 0.995 |
containers | gen | 12 | 7 | 8 | 1.475 |
pea_hello | gen | NA | NA | 4 | NA |