(b *testing.B)
| 694 | } |
| 695 | |
| 696 | func BenchmarkFileStorage_KeyPath(b *testing.B) { |
| 697 | runtime.GOMAXPROCS(1) |
| 698 | |
| 699 | var storage = &FileStorage{ |
| 700 | options: &serverconfigs.HTTPFileCacheStorage{}, |
| 701 | policy: &serverconfigs.HTTPCachePolicy{Id: 1}, |
| 702 | } |
| 703 | |
| 704 | for i := 0; i < b.N; i++ { |
| 705 | _, _, _ = storage.keyPath(strconv.Itoa(i)) |
| 706 | } |
| 707 | } |