18 lines
241 B
Go
18 lines
241 B
Go
package ints
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkIntsSmallRepunit(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
Big.Repunit(1234)
|
|
}
|
|
}
|
|
|
|
func BenchmarkIntsLargeRepunit(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
Big.Repunit(1234567)
|
|
}
|
|
}
|