Sha256: c1c2a93d91fd5250d3c1fb49418b852831526a5e861f107b95a1c04deafa0dc1
Contents?: true
Size: 393 Bytes
Versions: 48
Compression:
Stored size: 393 Bytes
Contents
require 'spec_helper' describe Response, 'performance' do before do @response = Response.new @response.body = '' end it "should be fast" do @response.body << <<-EOS <html><head><title>Dir listing</title></head> <body><h1>Listing stuff</h1><ul> #{'<li>Hi!</li>' * 100} </ul></body></html> EOS proc { @response.each { |l| l } }.should be_faster_then(0.00011) end end
Version data entries
48 entries across 48 versions & 2 rubygems