HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-3.0.2/benchmark/string_split.yml
prelude: |
  str1 = [*0..5].join(" ") + " "
  str10 = str1 * 10
  str100 = str10 * 10
  str1000 = str100 * 10
benchmark:
  to_chars-1: str1.split('')
  to_chars-10: str10.split('')
  to_chars-100: str100.split('')
  to_chars-1000: str1000.split('')
  to_words-1: str1.split(' ')
  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(/ /)
  re_space-1000: str1000.split(/ /)