npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

k6-stat

v1.0.6

Published

Compare k6 summary results and get stat.

Downloads

93

Readme

K6 Stat

Compare k6 summary results and get stat.

Installing / Getting started

Install

npm i -g k6-stat

Run Test

k6 run script.js

To obtain complete summary data, define a handle summary and proceed with the test

function handleSummary(data: Record<string, unknown>): Record<string, unknown> {
  const result: Record<string, unknown> = {
    'stdout': textSummary(data, { indent: ' ', enableColors: true }),
  };
  if (output != null) {
    result[output] = JSON.stringify(data);
  }
  return result;
}
import http from 'k6/http';
import { sleep } from 'k6';

export { default as handleSummary } from './handle-summary';

export default function () {
  http.get('https://test.k6.io');
  sleep(1);
}

Compare

k6-stat ./my_test_result1.json ./my_test_result2.json
data_received..................: 0 B   -226.2006666481302 B/s
data_sent......................: 0 B   -5.956195321009943 B/s
http_req_blocked...............: avg=27.69ms   min=27.69ms   med=27.69ms   max=27.69ms   p(90)=27.69ms   p(95)=27.69ms  
http_req_connecting............: avg=6.09ms    min=6.09ms    med=6.09ms    max=6.09ms    p(90)=6.09ms    p(95)=6.09ms   
http_req_duration..............: avg=5.9ms     min=5.9ms     med=5.9ms     max=5.9ms     p(90)=5.9ms     p(95)=5.9ms    
  { expected_response:true }...: avg=5.9ms     min=5.9ms     med=5.9ms     max=5.9ms     p(90)=5.9ms     p(95)=5.9ms    
http_req_failed................: 0.00% ✓ 0                    ✗ 0  
http_req_receiving.............: avg=-177000ns min=-177000ns med=-177000ns max=-177000ns p(90)=-177000ns p(95)=-177000ns
http_req_sending...............: avg=22.99µs   min=22.99µs   med=22.99µs   max=22.99µs   p(90)=22.99µs   p(95)=22.99µs  
http_req_tls_handshaking.......: avg=12.03ms   min=12.03ms   med=12.03ms   max=12.03ms   p(90)=12.03ms   p(95)=12.03ms  
http_req_waiting...............: avg=6.05ms    min=6.05ms    med=6.05ms    max=6.05ms    p(90)=6.05ms    p(95)=6.05ms   
http_reqs......................: 0     -0.013476/s
iteration_duration.............: avg=33.94ms   min=33.94ms   med=33.94ms   max=33.94ms   p(90)=33.94ms   p(95)=33.94ms  
iterations.....................: 0     -0.013476/s
vus............................: 0     min=0                  max=0
vus_max........................: 0     min=0                  max=0