module
Version:
v0.0.0-...-7c777c5
Opens a new window with list of versions in this module.
Published: Jan 13, 2025
License: Unlicense
Opens a new window with license information.
README
¶
fat contexts
This repo holds code for Context-induced performance bottleneck in Go.
Reproduce my results:
$ go test -bench=.
goos: darwin
goarch: arm64
pkg: github.com/Crocmagnon/fat-contexts
BenchmarkContext/shadow_10-8 2261456 763.0 ns/op
BenchmarkContext/fat_10-8 1662235 743.6 ns/op
BenchmarkContext/shadow_100-8 236544 4888 ns/op
BenchmarkContext/fat_100-8 53778 22275 ns/op
BenchmarkContext/shadow_1000-8 24499 48474 ns/op
BenchmarkContext/fat_1000-8 711 1698109 ns/op
BenchmarkContext/shadow_10000-8 2472 489804 ns/op
BenchmarkContext/fat_10000-8 6 170819118 ns/op
BenchmarkContext/shadow_100000-8 248 4938549 ns/op
BenchmarkContext/fat_100000-8 1 17150788208 ns/op
PASS
ok github.com/Crocmagnon/fat-contexts 31.454s
$ go run ./generate/main.go > data
$ go run ./plot/main.go
$ open plot.html
Sorry there are a lot of hardcoded file names in here, but since I don't intend on reusing this code I won't fix it.
Directories
¶
Click to show internal directories.
Click to hide internal directories.