Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
modules | 0 | 178 | 0.000 |
fib_iter | 4 | 1,528 | 0.002 |
fib_recursive | 11 | 889 | 0.012 |
loops | 4 | 286 | 0.013 |
asdl_generated | 7 | 375 | 0.019 |
scoped_resource | 32 | 1,032 | 0.031 |
parse | 30 | 767 | 0.039 |
containers | 10 | 98 | 0.102 |
tuple_return_value | 20 | 185 | 0.108 |
files | 8 | 68 | 0.113 |
classes | 3 | 22 | 0.145 |
length | 36 | 206 | 0.175 |
cartesian | 75 | 328 | 0.228 |
escape | 103 | 346 | 0.297 |
cgi | 261 | 517 | 0.504 |
varargs | 12 | 16 | 0.730 |
control_flow | 207 | 105 | 1.976 |
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.7 | 0.40 |
parse | 3.8 | 7.6 | 0.50 |
asdl_generated | 3.7 | 7.1 | 0.52 |
escape | 3.5 | 6.8 | 0.52 |
cartesian | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
loops | 3.7 | 6.9 | 0.53 |
scoped_resource | 3.8 | 7.1 | 0.54 |
fib_iter | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
length | 3.8 | 6.9 | 0.55 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
files | 3.9 | 6.9 | 0.57 |
modules | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.6 | 0.60 |
varargs | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
classes | 0 | 9 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 8 | 0.000 |
loops | 0 | 8 | 0.000 |
parse | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
containers | 5 | 35 | 0.142 |
modules | 2 | 4 | 0.431 |
fib_iter | 4 | 8 | 0.469 |
escape | 4 | 8 | 0.517 |
asdl_generated | 4 | 4 | 0.895 |
varargs | 55 | 56 | 0.973 |
cgi | 8 | 8 | 0.985 |
cartesian | 16 | 8 | 1.969 |
scoped_resource | 16 | 8 | 1.970 |
length | 8 | 4 | 2.019 |