Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
containers | 0 | 105 | 0.000 |
loops | 0 | 291 | 0.000 |
fib_iter | 4 | 890 | 0.004 |
modules | 2 | 184 | 0.010 |
fib_recursive | 11 | 892 | 0.012 |
asdl_generated | 11 | 385 | 0.028 |
scoped_resource | 39 | 1,023 | 0.038 |
parse | 30 | 759 | 0.039 |
tuple_return_value | 20 | 183 | 0.110 |
files | 8 | 69 | 0.117 |
classes | 3 | 23 | 0.138 |
length | 33 | 201 | 0.166 |
cartesian | 78 | 340 | 0.230 |
escape | 94 | 358 | 0.264 |
cgi | 249 | 510 | 0.489 |
varargs | 23 | 24 | 0.973 |
control_flow | 214 | 112 | 1.907 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.5 | 10.8 | 0.41 |
asdl_generated | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
loops | 3.7 | 7.2 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
cartesian | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.8 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 4 | 0.000 |
classes | 0 | 8 | 0.000 |
control_flow | 0 | 4 | 0.000 |
files | 0 | 8 | 0.000 |
modules | 0 | 8 | 0.000 |
parse | 0 | 12 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
fib_iter | 4 | 8 | 0.475 |
cgi | 4 | 8 | 0.501 |
containers | 16 | 31 | 0.504 |
scoped_resource | 8 | 12 | 0.651 |
varargs | 43 | 48 | 0.892 |
loops | 4 | 4 | 0.931 |
length | 11 | 12 | 0.939 |
cartesian | 12 | 0 | inf |
escape | 12 | 0 | inf |
fib_recursive | 0 | 0 | NA |