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 | 32 | 0.000 |
containers | 0 | 120 | 0.000 |
fib_recursive | 7 | 873 | 0.008 |
fib_iter | 8 | 897 | 0.009 |
asdl_generated | 4 | 380 | 0.010 |
modules | 2 | 176 | 0.010 |
loops | 4 | 295 | 0.013 |
parse | 30 | 795 | 0.038 |
scoped_resource | 43 | 1,035 | 0.042 |
files | 7 | 69 | 0.108 |
tuple_return_value | 20 | 183 | 0.110 |
length | 44 | 202 | 0.219 |
cartesian | 83 | 332 | 0.249 |
escape | 99 | 351 | 0.283 |
cgi | 262 | 516 | 0.508 |
varargs | 25 | 15 | 1.615 |
control_flow | 207 | 114 | 1.814 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.3 | 10.6 | 0.41 |
asdl_generated | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
cartesian | 3.5 | 6.9 | 0.51 |
loops | 3.8 | 7.2 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
length | 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 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.60 |
varargs | 5.6 | 6.9 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
fib_iter | 0 | 4 | 0.000 |
files | 0 | 8 | 0.000 |
length | 0 | 12 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
parse | 0 | 4 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
fib_recursive | 4 | 12 | 0.302 |
control_flow | 4 | 8 | 0.488 |
scoped_resource | 4 | 8 | 0.489 |
containers | 16 | 32 | 0.496 |
varargs | 41 | 58 | 0.718 |
asdl_generated | 8 | 8 | 0.944 |
cartesian | 8 | 4 | 1.971 |
cgi | 8 | 4 | 1.984 |
escape | 8 | 4 | 1.992 |
classes | 3 | 0 | inf |