Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BenchmarkTTLGetSetConcurrent (0.27 sec)

  1. pkg/cache/bench.baseline

    BenchmarkTTLSet-8                	10000000	       192 ns/op	      48 B/op	       2 allocs/op
    BenchmarkTTLSetConcurrent-8      	  500000	      2801 ns/op	     336 B/op	      14 allocs/op
    BenchmarkTTLGetSetConcurrent-8   	 5000000	      1049 ns/op	      48 B/op	       2 allocs/op
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. pkg/cache/ttlCache_test.go

    	benchmarkCacheSet(c, b)
    }
    
    func BenchmarkTTLSetConcurrent(b *testing.B) {
    	c := NewTTL(5*time.Minute, 1*time.Minute)
    	benchmarkCacheSetConcurrent(c, b)
    }
    
    func BenchmarkTTLGetSetConcurrent(b *testing.B) {
    	c := NewTTL(5*time.Minute, 1*time.Minute)
    	benchmarkCacheGetSetConcurrent(c, b)
    }
    
    func BenchmarkTTLSetRemove(b *testing.B) {
    	c := NewTTL(5*time.Minute, 1*time.Minute)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top