Skip to content

Instantly share code, notes, and snippets.

@bwmarrin
bwmarrin / append2_test.go
Created January 27, 2016 04:53 — forked from xogeny/append2_test.go
A different append benchmark for Golang
package copy_vs_append
import (
"testing"
)
func buildArray(n int64) []int64 {
ret := make([]int64, n, n)
var i int64
for i = 0; i < n; i++ {