sm
/
cache
1
0
Fork 0
This commit is contained in:
Patrick Mylund Nielsen 2015-11-30 16:04:57 -05:00
parent 9fc6f9c73f
commit 7c1e7f5829
2 changed files with 7 additions and 7 deletions

View File

@ -1426,7 +1426,7 @@ func TestSerializeUnserializable(t *testing.T) {
}
func BenchmarkCacheGetExpiring(b *testing.B) {
benchmarkCacheGet(b, 5 * time.Minute)
benchmarkCacheGet(b, 5*time.Minute)
}
func BenchmarkCacheGetNotExpiring(b *testing.B) {
@ -1458,7 +1458,7 @@ func BenchmarkRWMutexMapGet(b *testing.B) {
}
func BenchmarkCacheGetConcurrentExpiring(b *testing.B) {
benchmarkCacheGetConcurrent(b, 5 * time.Minute)
benchmarkCacheGetConcurrent(b, 5*time.Minute)
}
func BenchmarkCacheGetConcurrentNotExpiring(b *testing.B) {
@ -1510,7 +1510,7 @@ func BenchmarkRWMutexMapGetConcurrent(b *testing.B) {
}
func BenchmarkCacheGetManyConcurrentExpiring(b *testing.B) {
benchmarkCacheGetManyConcurrent(b, 5 * time.Minute)
benchmarkCacheGetManyConcurrent(b, 5*time.Minute)
}
func BenchmarkCacheGetManyConcurrentNotExpiring(b *testing.B) {
@ -1546,7 +1546,7 @@ func benchmarkCacheGetManyConcurrent(b *testing.B, exp time.Duration) {
}
func BenchmarkCacheSetExpiring(b *testing.B) {
benchmarkCacheSet(b, 5 * time.Minute)
benchmarkCacheSet(b, 5*time.Minute)
}
func BenchmarkCacheSetNotExpiring(b *testing.B) {
@ -1636,7 +1636,7 @@ func BenchmarkIncrementInt(b *testing.B) {
func BenchmarkDeleteExpiredLoop(b *testing.B) {
b.StopTimer()
tc := New(5 * time.Minute, 0)
tc := New(5*time.Minute, 0)
tc.mu.Lock()
for i := 0; i < 100000; i++ {
tc.set(strconv.Itoa(i), "bar", DefaultExpiration)

View File

@ -34,7 +34,7 @@ func TestShardedCache(t *testing.T) {
}
func BenchmarkShardedCacheGetExpiring(b *testing.B) {
benchmarkShardedCacheGet(b, 5 * time.Minute)
benchmarkShardedCacheGet(b, 5*time.Minute)
}
func BenchmarkShardedCacheGetNotExpiring(b *testing.B) {
@ -52,7 +52,7 @@ func benchmarkShardedCacheGet(b *testing.B, exp time.Duration) {
}
func BenchmarkShardedCacheGetManyConcurrentExpiring(b *testing.B) {
benchmarkShardedCacheGetManyConcurrent(b, 5 * time.Minute)
benchmarkShardedCacheGetManyConcurrent(b, 5*time.Minute)
}
func BenchmarkShardedCacheGetManyConcurrentNotExpiring(b *testing.B) {