diff options
Diffstat (limited to 'benchmark/bm_io_file_create.rb')
-rw-r--r-- | benchmark/bm_io_file_create.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/benchmark/bm_io_file_create.rb b/benchmark/bm_io_file_create.rb new file mode 100644 index 0000000000..3b48028808 --- /dev/null +++ b/benchmark/bm_io_file_create.rb @@ -0,0 +1,16 @@ +#
+# Create files
+#
+
+require 'tempfile'
+
+max = 50_000
+file = './tmpfile_of_bm_io_file_create'
+
+max.times{
+ #f = Tempfile.new('yarv-benchmark')
+ f = open(file, 'w')
+ f.close#(true)
+}
+File.unlink(file)
+
|