ruby-changes:61215
From: Nobuyoshi <ko1@a...>
Date: Tue, 12 May 2020 23:02:18 +0900 (JST)
Subject: [ruby-changes:61215] 02cb643ddb (master): Added String#split benchmark for empty regexp
https://git.ruby-lang.org/ruby.git/commit/?id=02cb643ddb From 02cb643ddbe855a11dd2af0f4355e0a2c9874169 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 12 May 2020 22:59:58 +0900 Subject: Added String#split benchmark for empty regexp | |compare-ruby|built-ruby| |:--------------|-----------:|---------:| |re_chars-1 | 169.230k| 973.855k| | | -| 5.75x| |re_chars-10 | 25.536k| 107.598k| | | -| 4.21x| |re_chars-100 | 2.621k| 11.207k| | | -| 4.28x| |re_chars-1000 | 259.098| 1.133k| | | -| 4.37x| diff --git a/benchmark/string_split.yml b/benchmark/string_split.yml index ac6ed0d..cc2c7d7 100644 --- a/benchmark/string_split.yml +++ b/benchmark/string_split.yml @@ -12,6 +12,10 @@ benchmark: https://github.com/ruby/ruby/blob/trunk/benchmark/string_split.yml#L12 to_words-10: str10.split(' ') to_words-100: str100.split(' ') to_words-1000: str1000.split(' ') + re_chars-1: str1.split(//) + re_chars-10: str10.split(//) + re_chars-100: str100.split(//) + re_chars-1000: str1000.split(//) re_space-1: str1.split(/ /) re_space-10: str10.split(/ /) re_space-100: str100.split(/ /) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/