Skip to content

Commit

Permalink
fix: http payload
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillich committed Nov 8, 2023
1 parent f980a51 commit 9bd192d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions run.cr
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ benchmarks.each_with_index do |b, i|

res = (0...1).map do |_|
output = IO::Memory.new
run("bombardier", ["--http2", "-c#{System.cpu_count * 50}", "-d5s", "-mPOST", %(-b'{"query":"{ hello }"}'), %(-H'
Content-Type: application/json'), "-ojson", "-pr", "http://localhost:8000/graphql"], wait: true, output: output)
run("bombardier", ["-c#{System.cpu_count * 50}", "-d5s", "-mPOST", %(-b{"query":"{ hello }"}), "-HContent-Type: application/json", "-ojson", "-pr", "http://localhost:8000/graphql"], wait: true, output: output)
output.to_s
end.last

Expand Down

0 comments on commit 9bd192d

Please sign in to comment.