Tool to extract the duration information per request from the K6 csv output
- Golang >= 1.16.6
git clone [email protected]:janritter/k6-duration-extractor.git
cd k6-duration-extractor
go install
brew tap janritter/k6-duration-extractor https://github.com/janritter/k6-duration-extractor
brew install k6-duration-extractor
k6 run --out csv=result.csv script.js
k6-duration-extractor result.csv
The k6-duration-extractor will save each request duration in a CSV file called <your-k6-output-filename>-extracted.csv
In our case this is result-extracted.csv
timestamp,duration,check,error_message,error_code,group,method,name,proto,scenario,status,subproto,tls_version,url,extra_tags
1595325560,221.899000,,,,,GET,http://test.k6.io,HTTP/1.1,default,200,,,http://test.k6.io,
1595325560,221.899000,,,,,GET,http://test.k6.io,HTTP/1.1,default,200,,,http://test.k6.io,
1595325560,221.899000,,,,,GET,http://test.k6.io,HTTP/1.1,default,200,,,http://test.k6.io,
1595325560,221.899000,,,,,GET,http://test.k6.io,HTTP/1.1,default,200,,,http://test.k6.io,
1595325560,221.899000,,,,,GET,http://test.k6.io,HTTP/1.1,default,200,,,http://test.k6.io,
Author: Jan Ritter
License: MIT