[WAF]规则支持导入导出

This commit is contained in:
刘祥超
2020-12-02 16:09:23 +08:00
parent 435e144fcf
commit 86fef9153a
23 changed files with 781 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
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"))
}
}