Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package MySort
import (
// コピーのoffset
func BenchmarkBaseCopy(b *testing.B) {
tmp := make([]int, len(a))
for i:= 0; i <b.N; i++ {
copy(tmp, a)
// 乱数生成のoffset
func BenchmarkBaseRandom(b *testing.B) {
for i:= 0; i <b.N; i++ {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment