Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 19 | 0.000 |
fib_recursive | 7 | 885 | 0.008 |
fib_iter | 8 | 899 | 0.008 |
modules | 2 | 181 | 0.010 |
loops | 4 | 299 | 0.012 |
asdl_generated | 11 | 381 | 0.028 |
containers | 4 | 133 | 0.029 |
parse | 25 | 774 | 0.032 |
scoped_resource | 47 | 1,014 | 0.046 |
files | 4 | 66 | 0.056 |
tuple_return_value | 16 | 187 | 0.087 |
length | 37 | 205 | 0.181 |
cartesian | 83 | 322 | 0.257 |
escape | 106 | 346 | 0.307 |
varargs | 12 | 24 | 0.516 |
cgi | 273 | 508 | 0.538 |
control_flow | 205 | 107 | 1.908 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.3 | 10.8 | 0.40 |
parse | 3.8 | 7.7 | 0.49 |
cartesian | 3.5 | 7.1 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
escape | 3.7 | 7.1 | 0.52 |
loops | 3.7 | 7.1 | 0.52 |
modules | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
fib_iter | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
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 |
cgi | 0 | 8 | 0.000 |
escape | 0 | 4 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
modules | 0 | 4 | 0.000 |
scoped_resource | 0 | 12 | 0.000 |
classes | 3 | 11 | 0.279 |
files | 4 | 12 | 0.320 |
control_flow | 4 | 8 | 0.505 |
tuple_return_value | 4 | 8 | 0.511 |
parse | 4 | 8 | 0.521 |
fib_recursive | 4 | 4 | 0.905 |
cartesian | 8 | 8 | 0.991 |
varargs | 54 | 48 | 1.117 |
containers | 12 | 8 | 1.503 |
length | 8 | 4 | 2.049 |
loops | 0 | 0 | NA |