Measure the speedup from mycpp, and the resource usage.
Source code: oil/mycpp/examples
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 0 | 3 | 13 | 0.000 |
fib_iter | gen | 8 | 4 | 884 | 0.009 |
modules | gen | 2 | 2 | 182 | 0.010 |
fib_recursive | gen | 11 | 11 | 888 | 0.012 |
loops | gen | 4 | 3 | 291 | 0.013 |
parse | gen | 24 | 25 | 796 | 0.030 |
asdl_generated | gen | 12 | 11 | 382 | 0.031 |
containers | gen | 4 | 5 | 114 | 0.034 |
scoped_resource | gen | 47 | 43 | 1,053 | 0.045 |
tuple_return_value | gen | 20 | 18 | 188 | 0.104 |
files | gen | 7 | 7 | 68 | 0.109 |
length | gen | 37 | 45 | 201 | 0.182 |
gc_stack_roots | gen | 2 | 2 | 8 | 0.228 |
cartesian | gen | 80 | 81 | 344 | 0.233 |
escape | gen | 87 | 94 | 335 | 0.260 |
cgi | gen | 267 | 261 | 513 | 0.521 |
varargs | gen | 16 | 17 | 24 | 0.684 |
control_flow | gen | 209 | 158 | 109 | 1.910 |
Lower ratios are better. We use MB (powers of 10), not MiB (powers of 2).
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
classes | gen | 4.5 | 4.6 | 10.7 | 0.41 |
gc_stack_roots | gen | 3.4 | 3.4 | 6.9 | 0.49 |
parse | gen | 3.8 | 3.9 | 7.6 | 0.50 |
loops | gen | 3.7 | 3.8 | 7.2 | 0.51 |
length | gen | 3.7 | 3.9 | 7.1 | 0.52 |
scoped_resource | gen | 3.7 | 3.8 | 7.1 | 0.52 |
asdl_generated | gen | 3.7 | 3.7 | 6.9 | 0.53 |
cartesian | gen | 3.7 | 3.7 | 6.9 | 0.53 |
control_flow | gen | 3.7 | 3.8 | 6.9 | 0.53 |
escape | gen | 3.7 | 3.7 | 6.9 | 0.53 |
modules | gen | 3.7 | 3.7 | 6.9 | 0.53 |
files | gen | 3.8 | 3.9 | 7.1 | 0.54 |
fib_recursive | gen | 3.7 | 3.7 | 6.8 | 0.54 |
cgi | gen | 3.8 | 3.7 | 6.9 | 0.55 |
fib_iter | gen | 3.8 | 3.8 | 6.9 | 0.55 |
tuple_return_value | gen | 3.8 | 3.8 | 6.9 | 0.55 |
containers | gen | 28.7 | 28.7 | 47.6 | 0.60 |
varargs | gen | 6.0 | 5.8 | 6.9 | 0.87 |
Lower ratios are better.
example name | gen | C++ | C++-Souffle | Python | C++ : Python |
asdl_generated | gen | 0 | 0 | 8 | 0.000 |
cgi | gen | 0 | 4 | 4 | 0.000 |
control_flow | gen | 0 | 8 | 4 | 0.000 |
fib_iter | gen | 0 | 4 | 8 | 0.000 |
files | gen | 0 | 0 | 8 | 0.000 |
gc_stack_roots | gen | 0 | 0 | 4 | 0.000 |
loops | gen | 0 | 0 | 4 | 0.000 |
modules | gen | 0 | 0 | 8 | 0.000 |
scoped_resource | gen | 0 | 4 | 4 | 0.000 |
tuple_return_value | gen | 0 | 0 | 4 | 0.000 |
classes | gen | 3 | 0 | 18 | 0.187 |
containers | gen | 12 | 9 | 20 | 0.577 |
cartesian | gen | 8 | 0 | 12 | 0.661 |
varargs | gen | 49 | 46 | 48 | 1.026 |
length | gen | 8 | 0 | 8 | 1.031 |
escape | gen | 16 | 8 | 12 | 1.323 |
parse | gen | 4 | 4 | 0 | inf |
fib_recursive | gen | 0 | 0 | 0 | NA |