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

benchapp

v1.0.2

Published

Benchmark Node.js Web Framework with `app.js`

Downloads

8

Readme

benchapp

Benchmark Node.js Web Framework with app.js

Install

$ npm i -g benchapp

Usages

压测单个

$ benchapp
$ benchapp app
$ benchapp app.js /

压测多个app

$ bm koa koa2-router.js
[ 'koa', 'koa2-router.js' ]
/Users/sang/workspace/sletjs/slet/benchmark/koa
Running 5s test @ http://localhost:55021/
100 connections with 10 pipelining factor

Stat         Avg     Stdev     Max     
Latency (ms) 9.14    31.13     427     
Req/Sec      11003.6 2608.45   13007   
Bytes/Sec    1.83 MB 433.68 kB 2.23 MB 

55k requests in 5s, 9.13 MB read
/Users/sang/workspace/sletjs/slet/benchmark/koa2-router.js
Running 5s test @ http://localhost:55124/
100 connections with 10 pipelining factor

Stat         Avg     Stdev     Max    
Latency (ms) 12.13   39.9      426    
Req/Sec      8340.6  2684.61   11007  
Bytes/Sec    1.26 MB 414.75 kB 1.7 MB 

42k requests in 5s, 6.21 MB read