Skip to content

Instantly share code, notes, and snippets.

@cipepser
Last active January 22, 2017 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cipepser/b8368c3fa411a7150eaa662d441979a1 to your computer and use it in GitHub Desktop.
Save cipepser/b8368c3fa411a7150eaa662d441979a1 to your computer and use it in GitHub Desktop.
package MySort
import (
"testing"
)
func BenchmarkBubbleSort(b *testing.B) {
tmp := make([]int, len(a))
for i:= 0; i < b.N; i++ {
copy(tmp, a)
BubbleSort(tmp)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment