Sha256: 24be211394cbe3de0d5cbfbb0f0457e954d9e302af694df4d3a46352e7a16056
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
require 'rfuzz/session' include RFuzz context "PUT Requests" do setup do @sess = Session.new :host => "localhost", :port => 3000 end specify "Should be fast" do data = @sess.rand.bytes(600) body = @sess.client.escape(data) @sess.run(10) do |c,r| 100.times do get = c.get("/test?data=#{body}") end end @sess.run(10, :save_as => ["put_runs.csv", "put_counts.csv"]) do |c,r| 100.times do put = c.put("/test", :body => data) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rfuzz-0.8 | examples/mongrel_test_suite/test/rails/put.rb |