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 | 292 | 0.000 |
varargs | 0 | 8 | 0.000 |
fib_iter | 4 | 1,171 | 0.003 |
fib_recursive | 9 | 1,394 | 0.007 |
loops | 4 | 475 | 0.008 |
scoped_resource | 9 | 1,050 | 0.009 |
asdl_generated | 32 | 640 | 0.050 |
containers | 11 | 176 | 0.062 |
parse | 81 | 1,295 | 0.062 |
classes | 4 | 31 | 0.117 |
iterators | 1 | 9 | 0.120 |
tuple_return_value | 47 | 300 | 0.156 |
files | 15 | 88 | 0.167 |
strings | 1 | 4 | 0.275 |
cgi | 260 | 877 | 0.296 |
length | 128 | 331 | 0.387 |
classes_gc | 2 | 4 | 0.431 |
cartesian | 226 | 523 | 0.433 |
escape | 223 | 514 | 0.435 |
control_flow | 324 | 178 | 1.816 |
arith_ops | 1 | 0 | inf |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | C++ | Python | C++ : Python |
classes | 4.6 | 11.6 | 0.40 |
classes_gc | 4.1 | 9.9 | 0.41 |
fib_iter | 3.4 | 7.5 | 0.45 |
varargs | 3.5 | 7.7 | 0.46 |
scoped_resource | 3.5 | 7.7 | 0.46 |
loops | 3.7 | 7.9 | 0.46 |
parse | 3.8 | 8.1 | 0.47 |
cgi | 3.5 | 7.5 | 0.47 |
modules | 3.6 | 7.6 | 0.47 |
arith_ops | 3.6 | 7.7 | 0.47 |
control_flow | 3.7 | 7.8 | 0.47 |
iterators | 3.6 | 7.7 | 0.47 |
cartesian | 3.6 | 7.6 | 0.48 |
strings | 3.7 | 7.7 | 0.48 |
asdl_generated | 3.7 | 7.7 | 0.48 |
length | 3.7 | 7.7 | 0.48 |
escape | 3.6 | 7.5 | 0.48 |
files | 3.7 | 7.7 | 0.48 |
fib_recursive | 3.7 | 7.5 | 0.49 |
tuple_return_value | 3.7 | 7.5 | 0.50 |
containers | 28.0 | 48.2 | 0.58 |
Lower ratios are better.
example name | C++ | Python | C++ : Python |
arith_ops | 0 | 9 | 0.000 |
classes_gc | 0 | 9 | 0.000 |
control_flow | 0 | 4 | 0.000 |
files | 0 | 4 | 0.000 |
loops | 0 | 4 | 0.000 |
parse | 0 | 8 | 0.000 |
scoped_resource | 0 | 8 | 0.000 |
strings | 0 | 8 | 0.000 |
containers | 4 | 12 | 0.301 |
fib_recursive | 3 | 4 | 0.779 |
fib_iter | 4 | 4 | 0.883 |
varargs | 11 | 4 | 2.964 |
modules | 1 | 0 | inf |
asdl_generated | 0 | 0 | NA |
cartesian | 0 | 0 | NA |
cgi | 0 | 0 | NA |
classes | 0 | 0 | NA |
escape | 0 | 0 | NA |
iterators | 0 | 0 | NA |
length | 0 | 0 | NA |
tuple_return_value | 0 | 0 | NA |