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 | 28 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 16 | 0.000 |
fib_iter | gen | 8 | 8 | 892 | 0.009 |
modules | gen | 2 | 0 | 198 | 0.009 |
fib_recursive | gen | 11 | 11 | 887 | 0.013 |
loops | gen | 4 | 3 | 303 | 0.014 |
asdl_generated | gen | 11 | 12 | 388 | 0.028 |
parse | gen | 31 | 23 | 797 | 0.039 |
containers | gen | 4 | 4 | 102 | 0.039 |
scoped_resource | gen | 48 | 46 | 1,034 | 0.046 |
files | gen | 4 | 7 | 76 | 0.049 |
tuple_return_value | gen | 19 | 19 | 206 | 0.093 |
length | gen | 42 | 35 | 209 | 0.201 |
cartesian | gen | 91 | 78 | 334 | 0.272 |
escape | gen | 100 | 92 | 356 | 0.282 |
cgi | gen | 261 | 266 | 525 | 0.498 |
varargs | gen | 31 | 29 | 20 | 1.559 |
control_flow | gen | 205 | 161 | 119 | 1.718 |
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.2 | 12.3 | 0.35 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.5 | 0.42 |
tuple_return_value | gen | 3.5 | 3.7 | 8.5 | 0.42 |
parse | gen | 3.8 | 3.8 | 9.1 | 0.42 |
modules | gen | 3.7 | 3.9 | 8.7 | 0.42 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.5 | 8.4 | 0.44 |
cartesian | gen | 3.7 | 3.5 | 8.4 | 0.44 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
fib_recursive | gen | 3.7 | 3.5 | 8.4 | 0.44 |
files | gen | 3.8 | 3.7 | 8.5 | 0.45 |
control_flow | gen | 3.8 | 3.7 | 8.4 | 0.45 |
fib_iter | gen | 3.8 | 3.9 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
loops | gen | 3.8 | 3.8 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.8 | 8.4 | 0.45 |
containers | gen | 28.5 | 28.4 | 49.1 | 0.58 |
varargs | gen | 5.4 | 5.4 | 8.5 | 0.63 |
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 | 0 | 4 | 0.000 |
cartesian | gen | 0 | 8 | 4 | 0.000 |
fib_iter | gen | 0 | 0 | 8 | 0.000 |
fib_recursive | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 2 | 8 | 0.000 |
parse | gen | 0 | 4 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 8 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 3 | 3 | 12 | 0.278 |
containers | gen | 12 | 12 | 43 | 0.279 |
files | gen | 4 | 0 | 8 | 0.464 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.475 |
length | gen | 4 | 12 | 8 | 0.476 |
escape | gen | 4 | 12 | 8 | 0.502 |
varargs | gen | 35 | 37 | 60 | 0.585 |
cgi | gen | 8 | 12 | 8 | 0.988 |
control_flow | gen | 4 | 0 | 4 | 0.991 |
pea_hello | gen | NA | NA | 4 | NA |