summaryrefslogtreecommitdiff
path: root/core/src/benchmark/scala/com/rockymadden/stringmetric/CaliperBenchmark.scala
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/benchmark/scala/com/rockymadden/stringmetric/CaliperBenchmark.scala')
-rwxr-xr-xcore/src/benchmark/scala/com/rockymadden/stringmetric/CaliperBenchmark.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/benchmark/scala/com/rockymadden/stringmetric/CaliperBenchmark.scala b/core/src/benchmark/scala/com/rockymadden/stringmetric/CaliperBenchmark.scala
new file mode 100755
index 0000000..55a6238
--- /dev/null
+++ b/core/src/benchmark/scala/com/rockymadden/stringmetric/CaliperBenchmark.scala
@@ -0,0 +1,7 @@
+package com.rockymadden.stringmetric
+
+import com.google.caliper.SimpleBenchmark
+
+trait CaliperBenchmark extends SimpleBenchmark {
+ def run(reps: Int)(code: => Unit) = (0 until reps).foreach(i => code)
+} \ No newline at end of file