mcollina / autocannon

fast HTTP/1.1 benchmarking tool written in Node.js
MIT License
7.83k stars 325 forks source link

A newline is added when writing to a file #58

Closed mcollina closed 8 years ago

mcollina commented 8 years ago

Wrong space when writing to file:

$ autocannon -c 100 http://localhost:3000
Running 10s test @ http://localhost:3000
100 connections

Stat         Avg      Stdev    Max
Latency (ms) 5.11     3.04     96
Req/Sec      17832.41 2170.06  20671
Bytes/Sec    1.99 MB  241.6 kB 2.36 MB

178k requests in 10s, 19.79 MB read

vs

$ autocannon -c 100 -j http://localhost:3000 > out.json

Running 10s test @ http://localhost:3000
100 connections

Stat         Avg     Stdev     Max
Latency (ms) 4.53    2.34      96
Req/Sec      19916.8 1427.08   21599
Bytes/Sec    2.22 MB 160.66 kB 2.49 MB

199k requests in 10s, 22.11 MB read
GlenTiki commented 8 years ago

Cannot reproduce 😬 Did you hit an extra enter button by accident?

mcollina commented 8 years ago

My bad 😱