transfer.sh/server/codec_test.go
2021-07-19 21:03:41 +02:00

15 lines
229 B
Go

package server
import "testing"
func BenchmarkEncodeConcat(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Token(5) + Token(5)
}
}
func BenchmarkEncodeLonger(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Token(10)
}
}