Skip to content

Instantly share code, notes, and snippets.

@bwmarrin
bwmarrin / IkeaPacker-vs-TheRest.txt
Created July 19, 2018 16:00
IkeaPacker vs The Rest.
# 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
@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++ {