Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
modules | 0 | 180 | 0.000 |
fib_iter | 8 | 1,043 | 0.007 |
fib_recursive | 7 | 904 | 0.008 |
loops | 4 | 306 | 0.012 |
asdl_generated | 7 | 381 | 0.019 |
parse | 30 | 771 | 0.038 |
scoped_resource | 47 | 1,034 | 0.045 |
tuple_return_value | 13 | 191 | 0.071 |
containers | 8 | 97 | 0.080 |
files | 7 | 68 | 0.111 |
classes | 3 | 19 | 0.170 |
length | 38 | 203 | 0.185 |
cartesian | 91 | 351 | 0.260 |
escape | 107 | 352 | 0.303 |
cgi | 250 | 511 | 0.489 |
varargs | 15 | 28 | 0.562 |
control_flow | 206 | 105 | 1.960 |
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.6 | 0.42 |
parse | 3.8 | 7.6 | 0.50 |
cartesian | 3.5 | 6.9 | 0.51 |
modules | 3.7 | 7.1 | 0.52 |
cgi | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
control_flow | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
asdl_generated | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 4 | 0.000 |
classes | 0 | 11 | 0.000 |
escape | 0 | 4 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
files | 0 | 8 | 0.000 |
loops | 0 | 4 | 0.000 |
parse | 0 | 8 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
containers | 8 | 36 | 0.213 |
control_flow | 4 | 12 | 0.339 |
modules | 2 | 4 | 0.453 |
asdl_generated | 4 | 4 | 0.909 |
length | 8 | 8 | 0.946 |
cgi | 4 | 4 | 1.003 |
varargs | 50 | 43 | 1.163 |
fib_recursive | 4 | 0 | inf |
tuple_return_value | 7 | 0 | inf |