mirror of
https://github.com/rwinkhart/convertroman.git
synced 2026-09-05 16:37:22 -04:00
Update benchmark for vinculum support
This commit is contained in:
@@ -45,6 +45,13 @@ func TestFromInt(t *testing.T) {
|
||||
func BenchmarkFromInt(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
_ = FromInt(3999)
|
||||
_ = FromInt(3999999)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkFromIntCapital(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
_ = FromIntCapital(3999999)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user