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 |
fib_recursive | gen | 7 | 11 | 949 | 0.008 |
fib_iter | gen | 8 | 4 | 941 | 0.008 |
modules | gen | 2 | 2 | 194 | 0.009 |
loops | gen | 4 | 3 | 303 | 0.012 |
asdl_generated | gen | 11 | 11 | 384 | 0.028 |
containers | gen | 4 | 5 | 112 | 0.035 |
parse | gen | 30 | 23 | 788 | 0.038 |
scoped_resource | gen | 47 | 46 | 1,041 | 0.045 |
tuple_return_value | gen | 14 | 14 | 198 | 0.073 |
files | gen | 7 | 7 | 75 | 0.097 |
classes | gen | 3 | 3 | 31 | 0.107 |
gc_stack_roots | gen | 2 | 0 | 15 | 0.112 |
length | gen | 41 | 46 | 205 | 0.200 |
cartesian | gen | 86 | 82 | 341 | 0.252 |
escape | gen | 101 | 95 | 358 | 0.281 |
cgi | gen | 269 | 267 | 524 | 0.513 |
varargs | gen | 20 | 12 | 28 | 0.736 |
control_flow | gen | 205 | 163 | 114 | 1.803 |
pea_hello | gen | NA | NA | 5 | 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.5 | 0.36 |
parse | gen | 3.7 | 3.8 | 9.1 | 0.40 |
gc_stack_roots | gen | 3.5 | 3.5 | 8.5 | 0.42 |
asdl_generated | gen | 3.5 | 3.5 | 8.4 | 0.42 |
escape | gen | 3.5 | 3.8 | 8.4 | 0.42 |
cartesian | gen | 3.7 | 3.5 | 8.5 | 0.43 |
cgi | gen | 3.7 | 3.7 | 8.5 | 0.43 |
modules | gen | 3.8 | 3.8 | 8.7 | 0.44 |
control_flow | gen | 3.8 | 3.8 | 8.5 | 0.45 |
fib_iter | gen | 3.8 | 3.5 | 8.5 | 0.45 |
fib_recursive | gen | 3.8 | 3.8 | 8.5 | 0.45 |
loops | gen | 3.8 | 3.9 | 8.5 | 0.45 |
files | gen | 3.8 | 3.8 | 8.4 | 0.45 |
length | gen | 3.8 | 3.8 | 8.4 | 0.45 |
scoped_resource | gen | 3.8 | 3.7 | 8.4 | 0.45 |
tuple_return_value | gen | 3.9 | 3.8 | 8.4 | 0.47 |
containers | gen | 28.4 | 28.5 | 49.1 | 0.58 |
varargs | gen | 5.6 | 5.5 | 8.5 | 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 | 4 | 0.000 |
cgi | gen | 0 | 0 | 8 | 0.000 |
classes | gen | 0 | 0 | 8 | 0.000 |
control_flow | gen | 0 | 0 | 8 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 2 | 4 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 12 | 0.000 |
parse | gen | 0 | 4 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 16 | 0.000 |
fib_recursive | gen | 4 | 0 | 12 | 0.299 |
containers | gen | 12 | 9 | 32 | 0.368 |
length | gen | 4 | 0 | 8 | 0.509 |
varargs | gen | 45 | 53 | 52 | 0.872 |
cartesian | gen | 4 | 4 | 4 | 0.974 |
escape | gen | 4 | 8 | 4 | 1.001 |
tuple_return_value | gen | 5 | 5 | 4 | 1.189 |
pea_hello | gen | NA | NA | 14 | NA |