cache read performance improvements
This commit is contained in:
parent
39c4720e40
commit
f69d3149f3
14 changed files with 140 additions and 71 deletions
15
pkg/provider/crypto/helper_test.go
Normal file
15
pkg/provider/crypto/helper_test.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package crypto
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func BenchmarkInc(b *testing.B) {
|
||||
var n [NonceSize]byte
|
||||
inc(&n, int64(b.N))
|
||||
}
|
||||
|
||||
func BenchmarkPut(b *testing.B) {
|
||||
var n [NonceSize]byte
|
||||
put(&n, int64(b.N))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue