This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# go version | |
go version go1.10.2 freebsd/amd64 | |
# sysctl hw.model hw.machine hw.ncpu | |
hw.model: Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz | |
hw.machine: amd64 | |
hw.ncpu: 12 | |
# sysctl hw.physmem | |
hw.physmem: 68647251968 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++ { |