summaryrefslogtreecommitdiff
path: root/benchmark/time_parse.yml
blob: 6060b58bc6486b78b756e361042e620c07e390a1 (plain)
1
2
3
4
5
6
7
8
9
10
prelude: |
  require 'time'
  inspect = "2021-08-23 09:57:02 +0900"
  iso8601 = "2021-08-23T09:57:02+09:00"
benchmark:
  - Time.iso8601(iso8601)
  - Time.parse(iso8601)
  - Time.parse(inspect)
  - Time.new(iso8601) rescue Time.iso8601(iso8601)
  - Time.new(inspect) rescue Time.parse(inspect)