Skip to content

Instantly share code, notes, and snippets.

@awilliams
awilliams / benchmark_results.txt
Last active August 6, 2016 16:25 — forked from billhathaway/benchmark_results.txt
Added my solution algorithmFive to elvis problem. Similar to Tyler's algorithmFour, but slightly slower.
go test -run none -bench . -benchtime 3s -benchmem
testing: warning: no tests to run
PASS
BenchmarkAlgorithmOne-8 2000000 2590 ns/op 53 B/op 2 allocs/op
BenchmarkAlgorithmTwo-8 5000000 957 ns/op 0 B/op 0 allocs/op
BenchmarkAlgorithmThree-8 3000000 1470 ns/op 16 B/op 1 allocs/op
BenchmarkAlgorithmFour-8 2000000 1907 ns/op 1 B/op 1 allocs/op
BenchmarkAlgorithmFive-8 2000000 2026 ns/op 1 B/op 1 allocs/op
BenchmarkAlgorithmSix-8 2000000 2177 ns/op 16 B/op 1 allocs/op
BenchmarkAlgorithmSeven-8 2000000 1878 ns/op 176 B/op 3 allocs/op