UNPKG
wrk-bench
Version:
latest (1.1.0)
1.1.0
1.0.0
0.2.0
0.1.0
Uses wrk to conduct a continuous benchmark
github.com/wraithan/wrk-bench
wraithan/wrk-bench
wrk-bench
/
test.js
10 lines
(8 loc)
•
210 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
bench =
require
(
'./index'
)
var
stringify =
require
(
'json-stringify-stream'
)
bench
({
threads
:
2
,
connections
:
5
,
duration
:
'10s'
,
url
:
'http://example.com'
}).
pipe
(
stringify
()).
pipe
(process.stdout)