summaryrefslogtreecommitdiff
path: root/trunk/benchmark/bm_io_file_create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/benchmark/bm_io_file_create.rb')
-rw-r--r--trunk/benchmark/bm_io_file_create.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/trunk/benchmark/bm_io_file_create.rb b/trunk/benchmark/bm_io_file_create.rb
new file mode 100644
index 0000000000..7adbe9ea5e
--- /dev/null
+++ b/trunk/benchmark/bm_io_file_create.rb
@@ -0,0 +1,13 @@
+#
+# Create files
+#
+
+max = 50_000
+file = './tmpfile_of_bm_io_file_create'
+
+max.times{
+ f = open(file, 'w')
+ f.close#(true)
+}
+File.unlink(file)
+