Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | C++ | Python | C++ : Python |
fib_iter | 7 | 894 | 0.008 |
modules | 2 | 171 | 0.010 |
fib_recursive | 11 | 886 | 0.012 |
loops | 4 | 291 | 0.013 |
asdl_generated | 11 | 378 | 0.028 |
parse | 22 | 775 | 0.029 |
containers | 4 | 99 | 0.040 |
scoped_resource | 48 | 1,012 | 0.047 |
tuple_return_value | 16 | 189 | 0.085 |
files | 7 | 74 | 0.100 |
length | 41 | 222 | 0.183 |
classes | 3 | 16 | 0.205 |
escape | 94 | 350 | 0.269 |
cartesian | 91 | 332 | 0.275 |
cgi | 254 | 507 | 0.502 |
varargs | 12 | 8 | 1.499 |
control_flow | 212 | 107 | 1.983 |
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.7 | 7.6 | 0.48 |
escape | 3.4 | 6.9 | 0.49 |
asdl_generated | 3.5 | 6.9 | 0.51 |
fib_iter | 3.7 | 7.1 | 0.52 |
modules | 3.7 | 7.1 | 0.52 |
scoped_resource | 3.7 | 7.1 | 0.52 |
cartesian | 3.7 | 6.9 | 0.53 |
files | 3.7 | 6.9 | 0.53 |
length | 3.7 | 6.9 | 0.53 |
control_flow | 3.8 | 7.1 | 0.54 |
loops | 3.8 | 7.1 | 0.54 |
cgi | 3.7 | 6.8 | 0.54 |
tuple_return_value | 3.8 | 6.9 | 0.55 |
fib_recursive | 3.9 | 6.9 | 0.57 |
containers | 28.5 | 47.8 | 0.59 |
varargs | 5.5 | 7.1 | 0.78 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
cartesian | 0 | 8 | 0.000 |
cgi | 0 | 4 | 0.000 |
classes | 0 | 16 | 0.000 |
control_flow | 0 | 8 | 0.000 |
fib_iter | 0 | 8 | 0.000 |
fib_recursive | 0 | 8 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
modules | 0 | 12 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
containers | 12 | 40 | 0.299 |
varargs | 52 | 64 | 0.812 |
tuple_return_value | 4 | 4 | 1.000 |
length | 4 | 4 | 1.004 |
parse | 7 | 4 | 1.864 |
escape | 12 | 4 | 2.922 |
asdl_generated | 0 | 0 | NA |