prelude: | # frozen_string_literal: true Warning[:experimental] = false buffer = IO::Buffer.new(32, IO::Buffer::MAPPED) string = "\0" * 32 benchmark: buffer.get_value: | buffer.get_value(:U32, 0) string.unpack1: | string.unpack1("N")