transfer.sh/server/token_test.go

16 lines
227 B
Go
Raw Normal View History

package server
import "testing"
2021-07-08 07:54:43 +02:00
func BenchmarkTokenConcat(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Token(5) + Token(5)
}
}
2021-07-08 07:54:43 +02:00
func BenchmarkTokenLonger(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = Token(10)
}
}