Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
containers | 0 | 118 | 0.000 |
loops | 0 | 286 | 0.000 |
fib_iter | 4 | 896 | 0.004 |
modules | 2 | 178 | 0.010 |
fib_recursive | 11 | 880 | 0.012 |
asdl_generated | 7 | 378 | 0.019 |
parse | 26 | 771 | 0.034 |
scoped_resource | 44 | 1,032 | 0.042 |
files | 4 | 75 | 0.050 |
tuple_return_value | 20 | 180 | 0.112 |
classes | 3 | 27 | 0.119 |
length | 40 | 199 | 0.200 |
cartesian | 77 | 330 | 0.232 |
escape | 106 | 343 | 0.309 |
cgi | 267 | 514 | 0.520 |
control_flow | 205 | 104 | 1.970 |
varargs | 33 | 4 | 8.284 |
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 |
fib_recursive | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
scoped_resource | 3.5 | 7.1 | 0.50 |
cgi | 3.5 | 6.9 | 0.51 |
fib_iter | 3.7 | 7.1 | 0.52 |
asdl_generated | 3.5 | 6.8 | 0.52 |
cartesian | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
files | 3.8 | 6.9 | 0.55 |
loops | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
escape | 3.8 | 6.7 | 0.57 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.5 | 6.8 | 0.81 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 4 | 0.000 |
classes | 0 | 4 | 0.000 |
escape | 0 | 8 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
modules | 0 | 8 | 0.000 |
tuple_return_value | 0 | 12 | 0.000 |
loops | 4 | 12 | 0.315 |
length | 4 | 12 | 0.333 |
asdl_generated | 4 | 8 | 0.455 |
varargs | 33 | 68 | 0.487 |
control_flow | 4 | 8 | 0.492 |
scoped_resource | 4 | 8 | 0.497 |
containers | 15 | 16 | 0.930 |
parse | 4 | 4 | 0.937 |
cartesian | 15 | 8 | 1.929 |
fib_iter | 4 | 0 | inf |
files | 4 | 0 | inf |