vault
vault copied to clipboard
Benchmark GetByPrefix
⚡️ cache/cachememdb (bench) » go test -bench=. -benchtime=5s -benchmem -cpuprofile=cpu.prof -memprofile mem.prof
goos: darwin
goarch: arm64
pkg: github.com/hashicorp/vault/command/agentproxyshared/cache/cachememdb
BenchmarkCacheMemDB_GetByPrefix-12 45837 1096098 ns/op 1711723 B/op 434 allocs/op
PASS
ok github.com/hashicorp/vault/command/agentproxyshared/cache/cachememdb 51.833s
Benchmarking results in branch - https://github.com/hashicorp/vault/pull/27782
goos: darwin
goarch: arm64
pkg: github.com/hashicorp/vault/command/agentproxyshared/cache/cachememdb
BenchmarkCacheMemDB_GetByPrefix-12 41760 632553 ns/op 1712341 B/op 429 allocs/op
PASS
ok github.com/hashicorp/vault/command/agentproxyshared/cache/cachememdb 28.160s