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 | 22 | 0.000 |
modules | 0 | 181 | 0.000 |
fib_iter | 8 | 1,041 | 0.007 |
fib_recursive | 11 | 878 | 0.013 |
loops | 4 | 289 | 0.013 |
asdl_generated | 11 | 391 | 0.027 |
parse | 25 | 760 | 0.033 |
scoped_resource | 48 | 1,027 | 0.047 |
containers | 8 | 109 | 0.071 |
files | 8 | 71 | 0.109 |
tuple_return_value | 20 | 183 | 0.109 |
length | 44 | 194 | 0.229 |
cartesian | 82 | 326 | 0.252 |
escape | 94 | 355 | 0.266 |
cgi | 263 | 512 | 0.512 |
varargs | 21 | 28 | 0.739 |
control_flow | 206 | 104 | 1.987 |
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.9 | 0.41 |
parse | 3.8 | 7.6 | 0.50 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
length | 3.5 | 6.9 | 0.51 |
scoped_resource | 3.7 | 7.1 | 0.52 |
escape | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
cgi | 3.8 | 6.9 | 0.55 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_iter | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.8 | 0.56 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
control_flow | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 12 | 0.000 |
loops | 0 | 8 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
containers | 8 | 32 | 0.239 |
classes | 3 | 9 | 0.376 |
modules | 2 | 4 | 0.442 |
parse | 4 | 8 | 0.523 |
cartesian | 8 | 8 | 0.985 |
varargs | 46 | 44 | 1.034 |
cgi | 8 | 4 | 2.018 |
escape | 12 | 0 | inf |
asdl_generated | 0 | 0 | NA |