Search
Project
General
Profile
Home
Projects
Help
Sign in
Register
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Download (418 Bytes)
Feature #22186
» string_subseq.yml
himura467 (Akito Shitara)
, 07/09/2026 03:52 AM
prelude
:
|
src = ("0123456789abcdef" * 128).freeze
len = src.bytesize
benchmark
:
subseq_10
:
src.byteslice(len - 10, 10)
subseq_50
:
src.byteslice(len - 50, 50)
subseq_100
:
src.byteslice(len - 100, 100)
subseq_250
:
src.byteslice(len - 250, 250)
subseq_500
:
src.byteslice(len - 500, 500)
subseq_999
:
src.byteslice(len - 999, 999)
subseq_1000
:
src.byteslice(len - 1000, 1000)
loop_count
:
2000000
« Previous
1
2
3
4
5
Next »
(4-4/5)
Loading...