summaryrefslogtreecommitdiff
path: root/benchmark/io_file_write.yml
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/io_file_write.yml')
-rw-r--r--benchmark/io_file_write.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/benchmark/io_file_write.yml b/benchmark/io_file_write.yml
new file mode 100644
index 0000000..68af6d5
--- /dev/null
+++ b/benchmark/io_file_write.yml
@@ -0,0 +1,17 @@
+benchmark:
+ io_file_write: |
+ #
+ # Seek and Write file.
+ #
+
+ require 'tempfile'
+
+ max = 200_000
+ str = "Hello world! " * 1000
+ f = Tempfile.new('yarv-benchmark')
+
+ max.times{
+ f.seek 0
+ f.write str
+ }
+loop_count: 1