Sha256: 2881b8fc5a3d3c1826329656523fb8fa4efb5098d4df66953bf60d96e716b8a9

Contents?: true

Size: 250 Bytes

Versions: 6

Compression:

Stored size: 250 Bytes

Contents

namespace :load_test do
  desc "Load test with apache benchmark"
  task :run, [:url, :count] do |_, args|
    url = args[:url] || "http://localhost:3000/hello_world"
    count = args[:count] || 500
    system("ab -c 10 -n #{count} #{url}")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
react_on_rails-6.0.0.rc.1 lib/generators/react_on_rails/templates/base/base/lib/tasks/load_test.rake
react_on_rails-6.0.0.beta.5 lib/generators/react_on_rails/templates/base/base/lib/tasks/load_test.rake
react_on_rails-6.0.0.beta.4 lib/generators/react_on_rails/templates/base/base/lib/tasks/load_test.rake
react_on_rails-6.0.0.beta.3 lib/generators/react_on_rails/templates/base/base/lib/tasks/load_test.rake
react_on_rails-6.0.0.beta.2 lib/generators/react_on_rails/templates/base/base/lib/tasks/load_test.rake
react_on_rails-6.0.0.beta.1 lib/generators/react_on_rails/templates/base/base/lib/tasks/load_test.rake