This file contains 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
# on Ubuntu 22.04 aws instance: | |
wget https://go.dev/dl/go1.23.5.linux-arm64.tar.gz | |
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.23.5.linux-arm64.tar.gz | |
git clone https://github.com/go-json-experiment/jsonbench | |
go test -timeout 0 -count=15 -bench='Benchmark/.*/.*/JSONv[12]/.*' -run=^$ > "$(curl -s http://169.254.169.254/latest/meta-data/instance-type).txt" | |
#Then copy both .txt files with benchmark result to the same location, and run (https://pkg.go.dev/golang.org/x/perf/cmd/benchstat) | |
go install golang.org/x/perf/cmd/benchstat@latest | |
# benchstat m6g.16xlarge.txt m8g.16xlarge.txt |