Skip to content
  • Jean Boussier's avatar
    1cb77f23
    Update IO::Buffer#get_value benchmark · 1cb77f23
    Jean Boussier authored
    - The method was renamed from `get` to `get_value`
    - Comparing to `String#unpack` isn't quite equivalent, `unpack1` is closer.
    - Use frozen_string_literal to avoid allocating a format string every time.
    - Use `N` format which is equivalent to `:U32` (`uint_32_t` big-endian).
    - Disable experimental warnings to not mess up the output.
    1cb77f23
    Update IO::Buffer#get_value benchmark
    Jean Boussier authored
    - The method was renamed from `get` to `get_value`
    - Comparing to `String#unpack` isn't quite equivalent, `unpack1` is closer.
    - Use frozen_string_literal to avoid allocating a format string every time.
    - Use `N` format which is equivalent to `:U32` (`uint_32_t` big-endian).
    - Disable experimental warnings to not mess up the output.
Loading