ab-result
v1.0.2
Published
Apache Benchmark result parser
Downloads
12
Readme
ab-result
![Try ab-result on RunKit](https://badge.runkitcdn.com/ab-result.svg
Apache Benchmark result parser
Installation
npm install --save ab-result
Usage
const abResult = require('ab-result');
const data = `This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software:
Server Hostname: localhost
Server Port: 8080
Document Path: /1.txt
Document Length: 2 bytes
Concurrency Level: 1
Time taken for tests: 0.000 seconds
Complete requests: 1
Failed requests: 0
Total transferred: 122 bytes
HTML transferred: 2 bytes
Requests per second: 2132.20 [#/sec] (mean)
Time per request: 0.469 [ms] (mean)
Time per request: 0.469 [ms] (mean, across all concurrent requests)
Transfer rate: 254.03 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 0 0.0 0 0
Waiting: 0 0 0.0 0 0
Total: 0 0 0.0 0 0`;
const result = abResult(data);
console.log(result);