diff options
Diffstat (limited to 'benchmark/bm_io_file_create.rb')
-rw-r--r-- | benchmark/bm_io_file_create.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/benchmark/bm_io_file_create.rb b/benchmark/bm_io_file_create.rb index db4e4dedd2..7adbe9ea5e 100644 --- a/benchmark/bm_io_file_create.rb +++ b/benchmark/bm_io_file_create.rb @@ -1,13 +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)
-
+# +# Create files +# + +max = 50_000 +file = './tmpfile_of_bm_io_file_create' + +max.times{ + f = open(file, 'w') + f.close#(true) +} +File.unlink(file) + |