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 |
modules | 0 | 180 | 0.000 |
fib_iter | 8 | 1,021 | 0.007 |
fib_recursive | 11 | 884 | 0.012 |
loops | 4 | 290 | 0.013 |
asdl_generated | 11 | 376 | 0.029 |
parse | 29 | 820 | 0.036 |
scoped_resource | 47 | 1,015 | 0.046 |
files | 8 | 72 | 0.106 |
tuple_return_value | 20 | 189 | 0.106 |
containers | 15 | 111 | 0.136 |
length | 36 | 214 | 0.171 |
cartesian | 87 | 331 | 0.263 |
escape | 94 | 339 | 0.279 |
cgi | 254 | 507 | 0.501 |
varargs | 17 | 24 | 0.686 |
control_flow | 215 | 111 | 1.935 |
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.6 | 0.50 |
scoped_resource | 3.5 | 7.1 | 0.50 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cgi | 3.7 | 6.9 | 0.53 |
escape | 3.7 | 6.9 | 0.53 |
modules | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
cartesian | 3.8 | 6.9 | 0.55 |
fib_iter | 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 |
fib_recursive | 3.9 | 7.1 | 0.56 |
control_flow | 3.8 | 6.8 | 0.56 |
containers | 28.7 | 47.8 | 0.60 |
varargs | 5.6 | 7.1 | 0.80 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cgi | 0 | 12 | 0.000 |
containers | 0 | 24 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
parse | 0 | 4 | 0.000 |
scoped_resource | 0 | 12 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
modules | 2 | 8 | 0.223 |
classes | 3 | 11 | 0.280 |
cartesian | 4 | 8 | 0.490 |
escape | 12 | 12 | 0.987 |
varargs | 50 | 48 | 1.030 |
length | 8 | 0 | inf |
asdl_generated | 0 | 0 | NA |