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/pm_array.yml
prelude: |
  def call(*val)
    case val
      in [String => body]
        [200, {}, [body]]
      in [Integer => status]
        [status, {}, [""]]
      in [Integer, String] => response
        [response[0], {}, [response[1]]]
      in [Integer, Hash, String] => response
        [response[0], response[1], [response[2]]]
    end
  end

benchmark:
  first_match: call("ok")
  second_match: call(401)
  third_match: call(200, "ok")
  fourth_match: call(201, {}, "created")