require 'time'
filename='ruby.htm'
fp=File.open(filename,'rb')
content= fp.read
me='<div id="respond" class="no_webshot">'
def findme(search,me)
pos=search.index(me)
end
pos=0
mark = Time.now.to_f
for i in 1..90000
pos=findme(content,me)
end
puts Time.now.to_f - mark