summaryrefslogtreecommitdiff
path: root/benchmark/string_index.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/string_index.yml')
-rw-r--r--benchmark/string_index.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/string_index.yml b/benchmark/string_index.yml
new file mode 100644
index 0000000..f89193a
--- /dev/null
+++ b/benchmark/string_index.yml
@@ -0,0 +1,6 @@
+benchmark:
+ string_index: |
+ str1 = "あ" * 1024 + "い" # not single byte optimizable
+ str2 = "い"
+ 100_000.times { str1.index(str2) }
+loop_count: 1