Skip to content

Commit 08fce55

Browse files
authored
Merge pull request kubernetes#82471 from yutedz/lru-cache-rw
Add note on the role of BenchmarkSimpleCache
2 parents 926bd4d + dd48a02 commit 08fce55

File tree

1 file changed

+3
-0
lines changed
  • staging/src/k8s.io/apiserver/pkg/authentication/token/cache

1 file changed

+3
-0
lines changed

staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ func TestSimpleCache(t *testing.T) {
3232
testCache(newSimpleCache(4096, clock.RealClock{}), t)
3333
}
3434

35+
// Note: the performance profile of this benchmark may not match that in the production.
36+
// When making change to SimpleCache, run test with and without concurrency to better understand the impact.
37+
// This is a tool to test and measure high concurrency of the cache in isolation and not to the Kubernetes usage of the Cache.
3538
func BenchmarkSimpleCache(b *testing.B) {
3639
benchmarkCache(newSimpleCache(4096, clock.RealClock{}), b)
3740
}

0 commit comments

Comments
 (0)