summaryrefslogtreecommitdiff
path: root/roman_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-03-13 12:58:45 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-03-13 12:58:45 +0100
commitf486be13ec5bfe693b72f95ed4e5a9d0b90b7f7c (patch)
tree34f0c42f259459f629ab2f58df51238acd7156ef /roman_test.go
parent1d3e4f0944ea1a116da9290ea913de71d54a9778 (diff)
...
Diffstat (limited to 'roman_test.go')
-rw-r--r--roman_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/roman_test.go b/roman_test.go
index a61436e..ff4afe9 100644
--- a/roman_test.go
+++ b/roman_test.go
@@ -25,3 +25,9 @@ func TestRoman(t *testing.T) {
})
}
}
+
+func BenchmarkRoman(b *testing.B) {
+ for i := 0; i < b.N; i++ {
+ Roman(1666).String()
+ }
+}