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 | 170 | 0.000 |
fib_iter | 8 | 888 | 0.009 |
fib_recursive | 11 | 891 | 0.012 |
loops | 4 | 303 | 0.013 |
parse | 18 | 783 | 0.024 |
asdl_generated | 11 | 378 | 0.029 |
containers | 4 | 114 | 0.033 |
scoped_resource | 47 | 1,050 | 0.045 |
files | 7 | 71 | 0.103 |
tuple_return_value | 20 | 185 | 0.107 |
classes | 3 | 26 | 0.123 |
length | 44 | 200 | 0.222 |
cartesian | 73 | 322 | 0.226 |
escape | 106 | 333 | 0.318 |
cgi | 268 | 512 | 0.524 |
varargs | 12 | 20 | 0.584 |
control_flow | 208 | 97 | 2.144 |
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.7 | 0.41 |
parse | 3.7 | 7.6 | 0.48 |
fib_iter | 3.4 | 6.9 | 0.49 |
fib_recursive | 3.5 | 7.1 | 0.50 |
scoped_resource | 3.5 | 6.9 | 0.51 |
loops | 3.7 | 7.1 | 0.52 |
escape | 3.5 | 6.8 | 0.52 |
asdl_generated | 3.7 | 6.9 | 0.53 |
cartesian | 3.7 | 6.9 | 0.53 |
cgi | 3.7 | 6.9 | 0.53 |
control_flow | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
files | 3.8 | 7.1 | 0.54 |
modules | 3.8 | 6.9 | 0.55 |
containers | 28.6 | 47.8 | 0.60 |
varargs | 5.5 | 6.9 | 0.79 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 12 | 0.000 |
cgi | 0 | 8 | 0.000 |
classes | 0 | 4 | 0.000 |
control_flow | 0 | 15 | 0.000 |
escape | 0 | 16 | 0.000 |
fib_iter | 0 | 4 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 8 | 0.000 |
loops | 0 | 4 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
tuple_return_value | 0 | 8 | 0.000 |
modules | 2 | 12 | 0.166 |
containers | 11 | 20 | 0.558 |
parse | 11 | 12 | 0.924 |
varargs | 54 | 52 | 1.048 |
cartesian | 20 | 12 | 1.671 |