client-go/tools
Antonio Ojea 21dc3b4441 benchmark to show inefficient linear search lookup
goos: linux
goarch: amd64
pkg: k8s.io/client-go/tools/cache
cpu: Intel(R) Xeon(R) CPU @ 2.60GHz
BenchmarkLister_Match_1k_100
BenchmarkLister_Match_1k_100-48      	   41910	     28255 ns/op	   16384 B/op	       1 allocs/op
BenchmarkLister_Match_10k_100
BenchmarkLister_Match_10k_100-48     	    3487	    337728 ns/op	  163848 B/op	       1 allocs/op
BenchmarkLister_Match_100k_100
BenchmarkLister_Match_100k_100-48    	     222	   7040793 ns/op	 1605659 B/op	       1 allocs/op
BenchmarkLister_Match_1M_100
BenchmarkLister_Match_1M_100-48      	      12	  97962328 ns/op	16007172 B/op	       1 allocs/op
PASS
ok  	k8s.io/client-go/tools/cache	10.480s

Kubernetes-commit: 33fbce73ae203ffeb1b9ea63ac43d567d1bdb1ad
2025-03-21 06:09:23 +00:00
..
auth
cache benchmark to show inefficient linear search lookup 2025-03-21 06:09:23 +00:00
clientcmd remove import doc comments 2024-12-02 14:43:58 +01:00
events events: ensure the name is valid 2025-02-20 09:13:56 +00:00
internal/events
leaderelection Add LeaseCandidate v1beta1 2025-02-19 21:43:35 +00:00
metrics
pager
portforward Fix test cases that may potentially cause a panic. 2025-03-11 17:41:37 +08:00
record events: ensure the name is valid 2025-02-20 09:13:56 +00:00
reference
remotecommand Websocket HTTPS proxy support 2025-01-29 03:56:55 +00:00
watch client-go watch: NewIndexerInformerWatcherWithContext -> WithLogger 2025-01-31 10:18:04 +01:00