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 | 17 | 0.000 |
containers | 0 | 92 | 0.000 |
modules | 0 | 177 | 0.000 |
fib_iter | 8 | 898 | 0.008 |
fib_recursive | 11 | 885 | 0.012 |
loops | 4 | 289 | 0.013 |
asdl_generated | 7 | 382 | 0.019 |
parse | 22 | 764 | 0.029 |
scoped_resource | 40 | 1,027 | 0.039 |
tuple_return_value | 20 | 200 | 0.101 |
files | 8 | 73 | 0.104 |
length | 40 | 198 | 0.201 |
cartesian | 81 | 357 | 0.228 |
escape | 106 | 347 | 0.306 |
cgi | 250 | 508 | 0.493 |
control_flow | 209 | 110 | 1.907 |
varargs | 39 | 16 | 2.378 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.6 | 10.8 | 0.43 |
asdl_generated | 3.5 | 6.9 | 0.51 |
cartesian | 3.5 | 6.9 | 0.51 |
cgi | 3.5 | 6.9 | 0.51 |
parse | 3.9 | 7.6 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
fib_iter | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
tuple_return_value | 3.7 | 6.9 | 0.53 |
escape | 3.5 | 6.7 | 0.53 |
loops | 3.8 | 7.1 | 0.54 |
control_flow | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.8 | 6.9 | 0.55 |
modules | 3.8 | 6.9 | 0.55 |
length | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.7 | 0.60 |
varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
control_flow | 0 | 4 | 0.000 |
escape | 0 | 4 | 0.000 |
fib_iter | 0 | 12 | 0.000 |
fib_recursive | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 8 | 0.000 |
tuple_return_value | 0 | 4 | 0.000 |
modules | 2 | 12 | 0.157 |
classes | 3 | 13 | 0.245 |
length | 4 | 12 | 0.336 |
containers | 15 | 40 | 0.381 |
asdl_generated | 4 | 8 | 0.445 |
varargs | 31 | 57 | 0.544 |
parse | 7 | 8 | 0.930 |
scoped_resource | 8 | 4 | 2.009 |
cartesian | 8 | 4 | 2.029 |
cgi | 4 | 0 | inf |