[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / benchmark / time_strptime.yml
blob8d89ebb7a7ef980ec75f3b7ed1e311d227c59144
1 prelude: |
2   require 'time'
3 benchmark:
4   - Time.strptime("28/Aug/2005:06:54:20 +0000", "%d/%b/%Y:%T %z")
5   - Time.strptime("1", "%s")
6   - Time.strptime("0 +0100", "%s %z")
7   - Time.strptime("0 UTC", "%s %z")
8   - Time.strptime("1.5", "%s.%N")
9   - Time.strptime("1.000000000001", "%s.%N")
10   - Time.strptime("20010203 -0200", "%Y%m%d %z")
11   - Time.strptime("20010203 UTC", "%Y%m%d %z")
12   - Time.strptime("2018-365", "%Y-%j")
13   - Time.strptime("2018-091", "%Y-%j")