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 | 28 | 0.000 |
modules | gen | 2 | 2 | 220 | 0.008 |
fib_iter | gen | 8 | 8 | 904 | 0.009 |
fib_recursive | gen | 11 | 7 | 886 | 0.012 |
loops | gen | 4 | 3 | 299 | 0.012 |
asdl_generated | gen | 11 | 7 | 372 | 0.029 |
parse | gen | 31 | 19 | 778 | 0.039 |
scoped_resource | gen | 44 | 33 | 1,041 | 0.042 |
tuple_return_value | gen | 12 | 18 | 194 | 0.059 |
files | gen | 7 | 0 | 77 | 0.096 |
containers | gen | 11 | 9 | 117 | 0.098 |
length | gen | 41 | 42 | 215 | 0.192 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.220 |
cartesian | gen | 88 | 78 | 376 | 0.235 |
escape | gen | 105 | 101 | 347 | 0.303 |
cgi | gen | 246 | 263 | 534 | 0.461 |
varargs | gen | 23 | 4 | 32 | 0.718 |
control_flow | gen | 202 | 161 | 114 | 1.776 |
pea_hello | gen | NA | NA | 11 | 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.3 | 0.35 |
gc_stack_roots | gen | 3.5 | 3.7 | 8.4 | 0.42 |
asdl_generated | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.5 | 8.5 | 0.43 |
fib_iter | gen | 3.7 | 3.5 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.8 | 8.5 | 0.43 |
loops | gen | 3.7 | 3.8 | 8.5 | 0.43 |
parse | gen | 3.9 | 3.9 | 9.1 | 0.43 |
cartesian | gen | 3.7 | 3.7 | 8.4 | 0.44 |
cgi | gen | 3.7 | 3.5 | 8.4 | 0.44 |
files | gen | 3.7 | 3.7 | 8.4 | 0.44 |
modules | gen | 3.8 | 3.8 | 8.5 | 0.45 |
scoped_resource | gen | 3.8 | 3.8 | 8.5 | 0.45 |
tuple_return_value | gen | 3.8 | 3.7 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.8 | 8.7 | 0.45 |
length | gen | 3.9 | 3.7 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.4 | 0.67 |
pea_hello | gen | NA | NA | 8.3 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 16 | 0.000 |
escape | gen | 0 | 0 | 16 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 7 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
loops | gen | 0 | 0 | 8 | 0.000 |
modules | gen | 0 | 0 | 4 | 0.000 |
parse | gen | 0 | 8 | 16 | 0.000 |
containers | gen | 4 | 5 | 32 | 0.119 |
classes | gen | 3 | 0 | 12 | 0.277 |
control_flow | gen | 4 | 0 | 8 | 0.487 |
varargs | gen | 42 | 62 | 48 | 0.877 |
scoped_resource | gen | 4 | 13 | 4 | 0.998 |
length | gen | 4 | 4 | 4 | 1.039 |
tuple_return_value | gen | 8 | 0 | 4 | 1.941 |
cgi | gen | 8 | 4 | 4 | 1.977 |
cartesian | gen | 4 | 8 | 0 | inf |
pea_hello | gen | NA | NA | 7 | NA |