Knapsack problem/Bounded/Go test: Difference between revisions
Content added Content deleted
m (update sub-repo url) |
m (fix typo) |
||
Line 42: | Line 42: | ||
* Make changes as desired |
* Make changes as desired |
||
* Re-run the benchmark this time saving the output to a different file, e.g. <tt>bench.out</tt> |
* Re-run the benchmark this time saving the output to a different file, e.g. <tt>bench.out</tt> |
||
* Compare the results with "<code>benchcmp bench.out{.orig,}</code>" (or if |
* Compare the results with "<code>benchcmp bench.out{.orig,}</code>" (or if your shell doesn't support "<code>{}</code>", with something like "<code>benchcmp bench.out.orig bench.out</code>") |
||
For example, when I changed the code to use a <code>struct</code> as a map key instead of a string, the output was: |
For example, when I changed the code to use a <code>struct</code> as a map key instead of a string, the output was: |
||
<pre> |
<pre> |