Benchmark
This commit is contained in:
parent
c08497b146
commit
fbb7bebd3b
@ -57,5 +57,10 @@ func TestConvert(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func BenchmarkConvert(b *testing.B) {
|
||||||
|
for i := 0; i < b.N; i++ {
|
||||||
|
Convert("50.0mi", "km")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user