Benchmark

This commit is contained in:
Meutel 2017-07-09 11:56:01 +02:00
parent c08497b146
commit fbb7bebd3b
1 changed files with 6 additions and 1 deletions

View File

@ -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")
}
}