go fmt
This commit is contained in:
parent
9fc6f9c73f
commit
7c1e7f5829
|
@ -1426,7 +1426,7 @@ func TestSerializeUnserializable(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheGetExpiring(b *testing.B) {
|
func BenchmarkCacheGetExpiring(b *testing.B) {
|
||||||
benchmarkCacheGet(b, 5 * time.Minute)
|
benchmarkCacheGet(b, 5*time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheGetNotExpiring(b *testing.B) {
|
func BenchmarkCacheGetNotExpiring(b *testing.B) {
|
||||||
|
@ -1458,7 +1458,7 @@ func BenchmarkRWMutexMapGet(b *testing.B) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheGetConcurrentExpiring(b *testing.B) {
|
func BenchmarkCacheGetConcurrentExpiring(b *testing.B) {
|
||||||
benchmarkCacheGetConcurrent(b, 5 * time.Minute)
|
benchmarkCacheGetConcurrent(b, 5*time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheGetConcurrentNotExpiring(b *testing.B) {
|
func BenchmarkCacheGetConcurrentNotExpiring(b *testing.B) {
|
||||||
|
@ -1510,7 +1510,7 @@ func BenchmarkRWMutexMapGetConcurrent(b *testing.B) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheGetManyConcurrentExpiring(b *testing.B) {
|
func BenchmarkCacheGetManyConcurrentExpiring(b *testing.B) {
|
||||||
benchmarkCacheGetManyConcurrent(b, 5 * time.Minute)
|
benchmarkCacheGetManyConcurrent(b, 5*time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheGetManyConcurrentNotExpiring(b *testing.B) {
|
func BenchmarkCacheGetManyConcurrentNotExpiring(b *testing.B) {
|
||||||
|
@ -1546,7 +1546,7 @@ func benchmarkCacheGetManyConcurrent(b *testing.B, exp time.Duration) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheSetExpiring(b *testing.B) {
|
func BenchmarkCacheSetExpiring(b *testing.B) {
|
||||||
benchmarkCacheSet(b, 5 * time.Minute)
|
benchmarkCacheSet(b, 5*time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkCacheSetNotExpiring(b *testing.B) {
|
func BenchmarkCacheSetNotExpiring(b *testing.B) {
|
||||||
|
@ -1636,7 +1636,7 @@ func BenchmarkIncrementInt(b *testing.B) {
|
||||||
|
|
||||||
func BenchmarkDeleteExpiredLoop(b *testing.B) {
|
func BenchmarkDeleteExpiredLoop(b *testing.B) {
|
||||||
b.StopTimer()
|
b.StopTimer()
|
||||||
tc := New(5 * time.Minute, 0)
|
tc := New(5*time.Minute, 0)
|
||||||
tc.mu.Lock()
|
tc.mu.Lock()
|
||||||
for i := 0; i < 100000; i++ {
|
for i := 0; i < 100000; i++ {
|
||||||
tc.set(strconv.Itoa(i), "bar", DefaultExpiration)
|
tc.set(strconv.Itoa(i), "bar", DefaultExpiration)
|
||||||
|
|
|
@ -34,7 +34,7 @@ func TestShardedCache(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkShardedCacheGetExpiring(b *testing.B) {
|
func BenchmarkShardedCacheGetExpiring(b *testing.B) {
|
||||||
benchmarkShardedCacheGet(b, 5 * time.Minute)
|
benchmarkShardedCacheGet(b, 5*time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkShardedCacheGetNotExpiring(b *testing.B) {
|
func BenchmarkShardedCacheGetNotExpiring(b *testing.B) {
|
||||||
|
@ -52,7 +52,7 @@ func benchmarkShardedCacheGet(b *testing.B, exp time.Duration) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkShardedCacheGetManyConcurrentExpiring(b *testing.B) {
|
func BenchmarkShardedCacheGetManyConcurrentExpiring(b *testing.B) {
|
||||||
benchmarkShardedCacheGetManyConcurrent(b, 5 * time.Minute)
|
benchmarkShardedCacheGetManyConcurrent(b, 5*time.Minute)
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkShardedCacheGetManyConcurrentNotExpiring(b *testing.B) {
|
func BenchmarkShardedCacheGetManyConcurrentNotExpiring(b *testing.B) {
|
||||||
|
|
Loading…
Reference in New Issue