* transcode.c (trans_open_i): check the result of rb_transcoding_open.
[ruby-svn.git] / benchmark / bm_io_file_read.rb
blob2b4212db7638a1244b5b33f8590c82a25a1479bb
2 # Seek and Read file.
5 require 'tempfile'
7 max = 20_000
8 str = "Hello world!  " * 1000
9 f = Tempfile.new('yarv-benchmark')
10 f.write str
12 max.times{
13   f.seek 0
14   f.read