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 | 15 | 0.000 |
fib_iter | 8 | 892 | 0.009 |
modules | 2 | 175 | 0.010 |
fib_recursive | 11 | 879 | 0.012 |
loops | 4 | 300 | 0.012 |
parse | 18 | 774 | 0.024 |
asdl_generated | 11 | 378 | 0.028 |
containers | 4 | 112 | 0.035 |
scoped_resource | 43 | 1,049 | 0.041 |
files | 8 | 73 | 0.103 |
tuple_return_value | 20 | 181 | 0.111 |
length | 44 | 208 | 0.212 |
cartesian | 80 | 331 | 0.242 |
escape | 105 | 346 | 0.303 |
cgi | 282 | 519 | 0.543 |
varargs | 16 | 19 | 0.820 |
control_flow | 209 | 112 | 1.873 |
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.7 | 7.6 | 0.48 |
fib_iter | 3.5 | 7.1 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
fib_recursive | 3.7 | 6.8 | 0.54 |
files | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
scoped_resource | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 7.1 | 0.56 |
length | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.5 | 6.8 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
control_flow | 0 | 4 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
classes | 3 | 15 | 0.210 |
containers | 12 | 24 | 0.483 |
cgi | 4 | 8 | 0.497 |
varargs | 51 | 53 | 0.952 |
scoped_resource | 4 | 4 | 0.972 |
parse | 11 | 8 | 1.379 |
cartesian | 12 | 0 | inf |
asdl_generated | 0 | 0 | NA |