summaryrefslogtreecommitdiff
path: root/benchmark/time_new.yml
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-23 09:57:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 18:44:53 +0900
commit11fd3fec534bb626e717a0628a0cf6d6252a0ff4 (patch)
treeefb9e1f709d9a676f88402ce466b87d1ab8cd67a /benchmark/time_new.yml
parente8025874334fa583fc77ed2ccc32ee78c2519a2c (diff)
Add benchmarks to create Time instances
Diffstat (limited to 'benchmark/time_new.yml')
-rw-r--r--benchmark/time_new.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/time_new.yml b/benchmark/time_new.yml
new file mode 100644
index 0000000000..5947dd3a41
--- /dev/null
+++ b/benchmark/time_new.yml
@@ -0,0 +1,4 @@
+benchmark:
+ - 'Time.new(2021)'
+ - 'Time.new(2021, 8, 22)'
+ - 'Time.new(2021, 8, 22, in: "+09:00")'