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 | 27 | 0.000 |
modules | 0 | 170 | 0.000 |
fib_iter | 8 | 909 | 0.008 |
fib_recursive | 11 | 881 | 0.013 |
loops | 4 | 297 | 0.013 |
asdl_generated | 11 | 380 | 0.029 |
parse | 30 | 781 | 0.039 |
scoped_resource | 47 | 1,022 | 0.046 |
containers | 8 | 113 | 0.069 |
files | 7 | 76 | 0.099 |
tuple_return_value | 20 | 190 | 0.106 |
length | 41 | 208 | 0.197 |
cartesian | 79 | 322 | 0.244 |
escape | 95 | 343 | 0.276 |
cgi | 265 | 502 | 0.528 |
varargs | 17 | 16 | 1.035 |
control_flow | 210 | 110 | 1.910 |
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 |
parse | 3.8 | 7.7 | 0.49 |
fib_recursive | 3.5 | 7.1 | 0.50 |
scoped_resource | 3.7 | 7.2 | 0.51 |
asdl_generated | 3.5 | 6.9 | 0.51 |
tuple_return_value | 3.7 | 7.1 | 0.52 |
cgi | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
cartesian | 3.7 | 6.8 | 0.54 |
escape | 3.7 | 6.8 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
containers | 28.7 | 47.6 | 0.60 |
varargs | 5.5 | 6.7 | 0.82 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
control_flow | 0 | 4 | 0.000 |
parse | 0 | 12 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
modules | 2 | 12 | 0.155 |
cgi | 4 | 12 | 0.336 |
containers | 8 | 20 | 0.385 |
classes | 3 | 4 | 0.850 |
varargs | 50 | 56 | 0.887 |
cartesian | 12 | 12 | 0.989 |
escape | 12 | 12 | 0.989 |
length | 4 | 4 | 1.022 |
asdl_generated | 0 | 0 | NA |
fib_iter | 0 | 0 | NA |
fib_recursive | 0 | 0 | NA |
files | 0 | 0 | NA |
loops | 0 | 0 | NA |