[前][次][番号順一覧][スレッド一覧]

ruby-changes:54528

From: nobu <ko1@a...>
Date: Mon, 7 Jan 2019 11:05:27 +0900 (JST)
Subject: [ruby-changes:54528] nobu:r66743 (trunk): Time.strptime benchmarks

nobu	2019-01-07 11:05:21 +0900 (Mon, 07 Jan 2019)

  New Revision: 66743

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66743

  Log:
    Time.strptime benchmarks

  Added files:
    trunk/benchmark/time_strptime.yml
Index: benchmark/time_strptime.yml
===================================================================
--- benchmark/time_strptime.yml	(nonexistent)
+++ benchmark/time_strptime.yml	(revision 66743)
@@ -0,0 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/benchmark/time_strptime.yml#L1
+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")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]