transfer.sh/server/token_test.go
Andrea Spacca a88c5ebf7a golint
2021-08-19 22:21:31 +02:00

15 lines
227 B
Go

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