(b *testing.B)
| 905 | } |
| 906 | |
| 907 | func BenchmarkGetTwo(b *testing.B) { |
| 908 | kms.Unittest = true |
| 909 | utils.RemoveAll(testStorePath + "*") |
| 910 | kms.ResetBucket() |
| 911 | |
| 912 | x, _ := InitConsistent(testStorePath, new(KMSStorage), false) |
| 913 | defer utils.RemoveAll(testStorePath + "*") |
| 914 | x.Add(NewNodeFromString("nothing")) |
| 915 | b.ResetTimer() |
| 916 | for i := 0; i < b.N; i++ { |
| 917 | x.GetTwoNeighbors("nothing") |
| 918 | } |
| 919 | } |
| 920 | |
| 921 | func BenchmarkGetTwoLarge(b *testing.B) { |
| 922 | kms.Unittest = true |
nothing calls this directly
no test coverage detected