summaryrefslogtreecommitdiff
path: root/benchmark/time_strftime.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/time_strftime.yml')
-rw-r--r--benchmark/time_strftime.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/time_strftime.yml b/benchmark/time_strftime.yml
new file mode 100644
index 0000000000..28f62aec87
--- /dev/null
+++ b/benchmark/time_strftime.yml
@@ -0,0 +1,7 @@
+prelude: |
+ # frozen_string_literal: true
+ time = Time.now
+benchmark:
+ - time.strftime("%FT%T") # 19B
+ - time.strftime("%FT%T.%3N") # 23B
+ - time.strftime("%FT%T.%6N") # 26B