Skip to content

Instantly share code, notes, and snippets.

@wizardishungry
Created March 6, 2022 02:37
Show Gist options
  • Save wizardishungry/92225869b50d249e9a763fa52793b564 to your computer and use it in GitHub Desktop.
Save wizardishungry/92225869b50d249e9a763fa52793b564 to your computer and use it in GitHub Desktop.
testing hls-await benchmarks on my raspberry pi 2 :-)
benchmark old ns/op new ns/op delta
BenchmarkScoreImage/gzip256 19301022 1543641522 +7897.72%
BenchmarkScoreImage/gif256 20331217 1507603817 +7315.22%
BenchmarkScoreImage/gif 257903567 18245462256 +6974.53%
BenchmarkScoreImage/png256 19827400 1367371356 +6796.37%
BenchmarkScoreImage/jpeg256 27591326 1800628285 +6426.07%
BenchmarkScoreImage/jpeg 6786711 402659528 +5833.06%
BenchmarkScoreImage/png 21518215 1025579140 +4666.10%
BenchmarkScoreImage/gzip 110047 5182135 +4609.02%
benchmark old allocs new allocs delta
BenchmarkScoreImage/jpeg 5 17 +240.00%
BenchmarkScoreImage/gif 24 52 +116.67%
BenchmarkScoreImage/png 829446 829701 +0.03%
BenchmarkScoreImage/jpeg256 414728 414787 +0.01%
BenchmarkScoreImage/gif256 414731 414790 +0.01%
BenchmarkScoreImage/gzip256 414737 414794 +0.01%
BenchmarkScoreImage/png256 414946 414985 +0.01%
BenchmarkScoreImage/gzip 14 14 +0.00%
benchmark old bytes new bytes delta
BenchmarkScoreImage/jpeg 13974 559034 +3900.53%
BenchmarkScoreImage/png 3401216 7920592 +132.88%
BenchmarkScoreImage/gif 1358500 2190536 +61.25%
BenchmarkScoreImage/jpeg256 3772494 5101480 +35.23%
BenchmarkScoreImage/gif256 3839537 5177088 +34.84%
BenchmarkScoreImage/png256 3782351 5039332 +33.23%
BenchmarkScoreImage/gzip256 4565152 5903600 +29.32%
BenchmarkScoreImage/gzip 807127 818859 +1.45%
goos: linux
goarch: amd64
pkg: github.com/WIZARDISHUNGRY/hls-await/internal/imagescore
cpu: AMD Ryzen 7 2700X Eight-Core Processor
BenchmarkScoreImage/png 55 21518215 ns/op 3401216 B/op 829446 allocs/op
BenchmarkScoreImage/gzip 10000 110047 ns/op 807127 B/op 14 allocs/op
BenchmarkScoreImage/jpeg 174 6786711 ns/op 13974 B/op 5 allocs/op
BenchmarkScoreImage/gif 4 257903567 ns/op 1358500 B/op 24 allocs/op
BenchmarkScoreImage/png256 57 19827400 ns/op 3782351 B/op 414946 allocs/op
BenchmarkScoreImage/gzip256 60 19301022 ns/op 4565152 B/op 414737 allocs/op
BenchmarkScoreImage/jpeg256 42 27591326 ns/op 3772494 B/op 414728 allocs/op
BenchmarkScoreImage/gif256 57 20331217 ns/op 3839537 B/op 414731 allocs/op
goos: linux
goarch: arm
pkg: github.com/WIZARDISHUNGRY/hls-await/internal/imagescore
BenchmarkScoreImage/png 1 1025579140 ns/op 7920592 B/op 829701 allocs/op
BenchmarkScoreImage/gzip 271 5182135 ns/op 818859 B/op 14 allocs/op
BenchmarkScoreImage/jpeg 3 402659528 ns/op 559034 B/op 17 allocs/op
BenchmarkScoreImage/gif 1 18245462256 ns/op 2190536 B/op 52 allocs/op
BenchmarkScoreImage/png256 2 1367371356 ns/op 5039332 B/op 414985 allocs/op
BenchmarkScoreImage/gzip256 1 1543641522 ns/op 5903600 B/op 414794 allocs/op
BenchmarkScoreImage/jpeg256 1 1800628285 ns/op 5101480 B/op 414787 allocs/op
BenchmarkScoreImage/gif256 1 1507603817 ns/op 5177088 B/op 414790 allocs/op
# Run tests on a single core only
go test ./internal/imagescore/... -cpu 1 -benchmem -run '^$' -bench BenchmarkScoreImage
# compare diffs
go run "golang.org/x/tools/cmd/benchcmp" -mag desktop raspberry-pi2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment