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 |
loops | gen | 0 | 0 | 298 | 0.000 |
fib_iter | gen | 8 | 8 | 911 | 0.008 |
modules | gen | 2 | 2 | 187 | 0.010 |
fib_recursive | gen | 11 | 11 | 881 | 0.012 |
asdl_generated | gen | 7 | 11 | 404 | 0.018 |
parse | gen | 26 | 23 | 764 | 0.034 |
scoped_resource | gen | 48 | 46 | 1,022 | 0.047 |
files | gen | 7 | 3 | 82 | 0.089 |
classes | gen | 3 | 3 | 34 | 0.092 |
tuple_return_value | gen | 19 | 14 | 195 | 0.099 |
containers | gen | 12 | 5 | 112 | 0.108 |
varargs | gen | 4 | 16 | 20 | 0.203 |
length | gen | 45 | 46 | 204 | 0.220 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.225 |
cartesian | gen | 83 | 79 | 335 | 0.248 |
escape | gen | 105 | 91 | 354 | 0.297 |
cgi | gen | 260 | 260 | 520 | 0.500 |
control_flow | gen | 204 | 160 | 108 | 1.881 |
pea_hello | gen | NA | NA | 7 | 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.3 | 12.2 | 0.37 |
gc_stack_roots | gen | 3.4 | 3.5 | 8.4 | 0.41 |
parse | gen | 3.8 | 3.8 | 9.1 | 0.42 |
cartesian | gen | 3.7 | 3.7 | 8.5 | 0.43 |
escape | gen | 3.7 | 3.7 | 8.5 | 0.43 |
fib_recursive | gen | 3.7 | 3.8 | 8.5 | 0.43 |
asdl_generated | gen | 3.7 | 3.7 | 8.4 | 0.44 |
cgi | gen | 3.7 | 3.7 | 8.4 | 0.44 |
files | gen | 3.8 | 3.8 | 8.5 | 0.45 |
length | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.7 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.5 | 8.4 | 0.45 |
tuple_return_value | gen | 3.8 | 3.8 | 8.4 | 0.45 |
control_flow | gen | 3.9 | 3.7 | 8.5 | 0.46 |
fib_iter | gen | 3.9 | 3.5 | 8.4 | 0.47 |
modules | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.5 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.5 | 5.4 | 8.5 | 0.65 |
pea_hello | gen | NA | NA | 8.1 | NA |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 0 | 0 | 8 | 0.000 |
escape | gen | 0 | 12 | 8 | 0.000 |
fib_iter | gen | 0 | 0 | 4 | 0.000 |
fib_recursive | gen | 0 | 0 | 8 | 0.000 |
files | gen | 0 | 7 | 4 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 12 | 0.000 |
length | gen | 0 | 0 | 12 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 16 | 0.000 |
tuple_return_value | gen | 0 | 5 | 8 | 0.000 |
containers | gen | 4 | 9 | 32 | 0.126 |
control_flow | gen | 4 | 0 | 15 | 0.258 |
parse | gen | 4 | 5 | 12 | 0.360 |
loops | gen | 4 | 3 | 8 | 0.460 |
cgi | gen | 8 | 8 | 12 | 0.667 |
asdl_generated | gen | 4 | 0 | 4 | 0.908 |
varargs | gen | 60 | 48 | 59 | 1.013 |
cartesian | gen | 8 | 8 | 8 | 1.040 |
pea_hello | gen | NA | NA | 11 | NA |