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_iter | 4 | 910 | 0.004 |
modules | 2 | 175 | 0.010 |
fib_recursive | 11 | 903 | 0.012 |
loops | 4 | 292 | 0.013 |
asdl_generated | 11 | 383 | 0.028 |
parse | 22 | 755 | 0.030 |
containers | 4 | 125 | 0.031 |
scoped_resource | 44 | 1,034 | 0.042 |
tuple_return_value | 16 | 192 | 0.084 |
files | 8 | 68 | 0.111 |
length | 39 | 201 | 0.195 |
cartesian | 90 | 326 | 0.277 |
escape | 102 | 348 | 0.292 |
cgi | 247 | 504 | 0.490 |
varargs | 20 | 12 | 1.622 |
control_flow | 212 | 110 | 1.919 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.6 | 10.6 | 0.43 |
parse | 3.9 | 7.7 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
fib_iter | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
tuple_return_value | 3.8 | 7.1 | 0.54 |
cartesian | 3.7 | 6.8 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
loops | 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.7 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 4 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 8 | 0.000 |
loops | 0 | 8 | 0.000 |
modules | 0 | 8 | 0.000 |
classes | 3 | 12 | 0.282 |
scoped_resource | 4 | 12 | 0.331 |
escape | 4 | 8 | 0.508 |
parse | 7 | 12 | 0.622 |
cgi | 8 | 12 | 0.664 |
varargs | 47 | 60 | 0.778 |
containers | 11 | 12 | 0.948 |
length | 8 | 8 | 0.974 |
fib_iter | 4 | 0 | inf |
tuple_return_value | 4 | 0 | inf |
asdl_generated | 0 | 0 | NA |