mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9 lines
262 B
YAML
9 lines
262 B
YAML
benchmark:
|
|
- name: buffer.get
|
|
prelude: buffer = IO::Buffer.new(32, IO::Buffer::MAPPED)
|
|
script: buffer.get(:U32, 0)
|
|
loop_count: 20000000
|
|
- name: string.unpack
|
|
prelude: string = "\0" * 32
|
|
script: string.unpack("C")
|
|
loop_count: 20000000
|