Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
loops | 0 | 286 | 0.000 |
modules | 0 | 177 | 0.000 |
fib_iter | 7 | 884 | 0.008 |
fib_recursive | 11 | 883 | 0.012 |
asdl_generated | 11 | 379 | 0.030 |
parse | 25 | 784 | 0.032 |
scoped_resource | 43 | 1,017 | 0.042 |
containers | 11 | 105 | 0.103 |
files | 8 | 72 | 0.105 |
tuple_return_value | 20 | 188 | 0.107 |
classes | 3 | 22 | 0.151 |
length | 45 | 202 | 0.223 |
cartesian | 82 | 345 | 0.238 |
escape | 102 | 345 | 0.296 |
cgi | 246 | 506 | 0.487 |
varargs | 19 | 24 | 0.806 |
control_flow | 208 | 117 | 1.773 |
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.8 | 0.40 |
cgi | 3.4 | 7.1 | 0.48 |
escape | 3.5 | 7.1 | 0.50 |
parse | 3.8 | 7.6 | 0.50 |
cartesian | 3.5 | 6.9 | 0.51 |
asdl_generated | 3.7 | 6.9 | 0.53 |
fib_iter | 3.7 | 6.9 | 0.53 |
fib_recursive | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
scoped_resource | 3.8 | 7.1 | 0.54 |
tuple_return_value | 3.8 | 7.1 | 0.54 |
modules | 3.8 | 6.9 | 0.55 |
control_flow | 3.9 | 6.9 | 0.57 |
containers | 28.7 | 48.0 | 0.60 |
varargs | 5.4 | 6.9 | 0.77 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
asdl_generated | 0 | 4 | 0.000 |
classes | 0 | 9 | 0.000 |
control_flow | 0 | 4 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 12 | 0.000 |
files | 0 | 4 | 0.000 |
length | 0 | 8 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
containers | 4 | 28 | 0.128 |
modules | 2 | 8 | 0.219 |
loops | 4 | 8 | 0.451 |
scoped_resource | 4 | 8 | 0.485 |
cgi | 4 | 8 | 0.502 |
varargs | 47 | 48 | 0.968 |
escape | 8 | 8 | 1.018 |
parse | 4 | 4 | 1.048 |
cartesian | 8 | 4 | 2.044 |