mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Time.strptime benchmarks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9e3ffd41f5
commit
72ad092960
1 changed files with 13 additions and 0 deletions
13
benchmark/time_strptime.yml
Normal file
13
benchmark/time_strptime.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
prelude: |
|
||||
require 'time'
|
||||
benchmark:
|
||||
- Time.strptime("28/Aug/2005:06:54:20 +0000", "%d/%b/%Y:%T %z")
|
||||
- Time.strptime("1", "%s")
|
||||
- Time.strptime("0 +0100", "%s %z")
|
||||
- Time.strptime("0 UTC", "%s %z")
|
||||
- Time.strptime("1.5", "%s.%N")
|
||||
- Time.strptime("1.000000000001", "%s.%N")
|
||||
- Time.strptime("20010203 -0200", "%Y%m%d %z")
|
||||
- Time.strptime("20010203 UTC", "%Y%m%d %z")
|
||||
- Time.strptime("2018-365", "%Y-%j")
|
||||
- Time.strptime("2018-091", "%Y-%j")
|
Loading…
Reference in a new issue