- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkInsertUpdate (0.13 sec)
-
pkg/util/iptree/iptree_test.go
t.Run(tt.name, func(t *testing.T) { if got := prefixContainIP(tt.prefix, tt.ip); got != tt.want { t.Errorf("prefixContainIP() = %v, want %v", got, tt.want) } }) } } func BenchmarkInsertUpdate(b *testing.B) { r := New[bool]() ipList := generateRandomCIDRs(true, 20000).UnsortedList() for _, ip := range ipList { r.InsertPrefix(ip, true) } b.ResetTimer() for n := 0; n < b.N; n++ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17.8K bytes - Viewed (0)