Knapsack problem/Bounded/Go test: Difference between revisions

m
update sub-repo url
(Add Go test file and instructions)
 
m (update sub-repo url)
Line 38:
If you're unfamiliar with using benchmarks within go tests:
* Put the above into a <tt>*_test.go</tt> file in the same directory as the <tt>*.go</tt> file from [[Knapsack_problem/Bounded#Go]] (and with no other Go source files)
* Get and build [http://godoc.org/codegolang.google.comorg/px/go.tools/cmd/benchcmp benchcmp] if you don't already have it: "<code>go get -v codegolang.google.comorg/px/go.tools/cmd/benchcmp</code>"
* Run <code>go test -v -bench=. > bench.out.orig</code> (or <code>go test -bench=. | tee bench.out.orig</code> or some such)
* Make changes as desired
1,707

edits