mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			234 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			234 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package ttlcache
 | 
						|
 | 
						|
import (
 | 
						|
	"runtime"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func BenchmarkHashKey(b *testing.B) {
 | 
						|
	runtime.GOMAXPROCS(1)
 | 
						|
	for i := 0; i < b.N; i++ {
 | 
						|
		HashKey([]byte("HELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLDHELLO,WORLD"))
 | 
						|
	}
 | 
						|
}
 |