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 | 8 | 895 | 0.008 |
modules | 2 | 172 | 0.010 |
fib_recursive | 11 | 883 | 0.012 |
loops | 5 | 300 | 0.016 |
asdl_generated | 11 | 374 | 0.029 |
parse | 30 | 760 | 0.039 |
scoped_resource | 47 | 1,017 | 0.047 |
files | 4 | 71 | 0.054 |
containers | 8 | 110 | 0.073 |
tuple_return_value | 20 | 185 | 0.111 |
length | 37 | 202 | 0.181 |
cartesian | 83 | 335 | 0.247 |
escape | 108 | 340 | 0.317 |
cgi | 252 | 516 | 0.489 |
varargs | 20 | 24 | 0.814 |
control_flow | 207 | 109 | 1.894 |
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.5 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
escape | 3.5 | 6.9 | 0.51 |
modules | 3.5 | 6.9 | 0.51 |
cgi | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
loops | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.7 | 6.9 | 0.53 |
asdl_generated | 3.7 | 6.8 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
files | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
containers | 28.7 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 8 | 0.000 |
cgi | 0 | 4 | 0.000 |
control_flow | 0 | 4 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 12 | 0.000 |
parse | 0 | 8 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
classes | 3 | 12 | 0.292 |
containers | 8 | 24 | 0.342 |
cartesian | 8 | 12 | 0.690 |
files | 4 | 4 | 0.972 |
varargs | 47 | 48 | 0.977 |
length | 8 | 8 | 1.004 |