(b *testing.B)
| 845 | } |
| 846 | |
| 847 | func BenchmarkGet(b *testing.B) { |
| 848 | kms.Unittest = true |
| 849 | utils.RemoveAll(testStorePath + "*") |
| 850 | kms.ResetBucket() |
| 851 | |
| 852 | x, _ := InitConsistent(testStorePath, new(KMSStorage), false) |
| 853 | defer utils.RemoveAll(testStorePath + "*") |
| 854 | x.Add(NewNodeFromString("nothing")) |
| 855 | b.ResetTimer() |
| 856 | for i := 0; i < b.N; i++ { |
| 857 | x.GetNeighbor("nothing") |
| 858 | } |
| 859 | } |
| 860 | |
| 861 | func BenchmarkGetLarge(b *testing.B) { |
| 862 | kms.Unittest = true |
nothing calls this directly
no test coverage detected