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 | 3 | 294 | 0.000 |
fib_iter | gen | 4 | 8 | 885 | 0.004 |
modules | gen | 2 | 2 | 185 | 0.010 |
fib_recursive | gen | 11 | 7 | 880 | 0.012 |
asdl_generated | gen | 11 | 8 | 381 | 0.028 |
parse | gen | 30 | 20 | 767 | 0.039 |
scoped_resource | gen | 49 | 45 | 1,024 | 0.048 |
containers | gen | 8 | 10 | 112 | 0.069 |
tuple_return_value | gen | 16 | 18 | 190 | 0.087 |
files | gen | 8 | 4 | 68 | 0.112 |
length | gen | 48 | 39 | 202 | 0.240 |
cartesian | gen | 85 | 84 | 334 | 0.254 |
escape | gen | 89 | 96 | 344 | 0.258 |
classes | gen | 3 | 3 | 12 | 0.280 |
gc_stack_roots | gen | 2 | 2 | 4 | 0.446 |
cgi | gen | 262 | 266 | 514 | 0.510 |
varargs | gen | 21 | 31 | 16 | 1.292 |
control_flow | gen | 207 | 160 | 108 | 1.910 |
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 | 10.9 | 0.41 |
parse | gen | 3.7 | 3.8 | 7.5 | 0.49 |
cgi | gen | 3.5 | 3.7 | 6.9 | 0.51 |
gc_stack_roots | gen | 3.5 | 3.5 | 6.9 | 0.51 |
control_flow | gen | 3.7 | 3.8 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.7 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.4 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
loops | gen | 3.8 | 3.7 | 7.1 | 0.54 |
modules | gen | 3.8 | 3.8 | 7.1 | 0.54 |
escape | gen | 3.8 | 3.7 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.7 | 6.9 | 0.55 |
fib_recursive | gen | 3.8 | 3.5 | 6.9 | 0.55 |
files | gen | 3.8 | 3.7 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.5 | 6.9 | 0.55 |
length | gen | 3.9 | 3.8 | 6.9 | 0.57 |
containers | gen | 28.6 | 28.6 | 47.6 | 0.60 |
varargs | gen | 5.4 | 5.6 | 7.1 | 0.76 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 4 | 4 | 0.000 |
classes | gen | 0 | 0 | 20 | 0.000 |
fib_recursive | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 4 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 8 | 0.000 |
parse | gen | 0 | 8 | 8 | 0.000 |
scoped_resource | gen | 0 | 0 | 20 | 0.000 |
containers | gen | 8 | 5 | 28 | 0.276 |
fib_iter | gen | 4 | 0 | 8 | 0.480 |
loops | gen | 4 | 0 | 8 | 0.482 |
control_flow | gen | 4 | 0 | 8 | 0.496 |
length | gen | 4 | 8 | 8 | 0.500 |
tuple_return_value | gen | 4 | 0 | 8 | 0.509 |
varargs | gen | 46 | 35 | 56 | 0.812 |
cartesian | gen | 8 | 4 | 8 | 0.970 |
cgi | gen | 8 | 4 | 8 | 0.997 |
escape | gen | 16 | 8 | 8 | 2.014 |
modules | gen | 0 | 0 | 0 | NA |