mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-30 08:00:19 +01:00
15 lines
265 B
Go
15 lines
265 B
Go
package server
|
|
|
|
import "testing"
|
|
|
|
func BenchmarkEncodeConcat(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
_ = Encode(INIT_SEED, 5) + Encode(INIT_SEED, 5)
|
|
}
|
|
}
|
|
|
|
func BenchmarkEncodeLonger(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
_ = Encode(INIT_SEED, 10)
|
|
}
|
|
}
|