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

autocannon-ci

v0.1.0

Published

run your benchmarks as part of your dev flow, for Node.js

Downloads

5

Readme

banner

autocannon-ci

autocannon-ci can store the results and generate the flamegraphs of your HTTP/1.1 benchmarks of Node.js server. Run your autocannon benchmarks as part of your CI/dev flow, for Node.js.

It can also generate a little website containing all the result of your benchmarking, including flamegraphs with 0x:

Install

npm i autocannon-ci -g

Usage

autocannon-ci -c autocannon.yml

Configuration Example

server: ./server.js
benchmarks:
  root:
    connections: 100
    duration: 5
    url: localhost:3000
  b:
    connections: 100
    duration: 5
    url: localhost:3000/b
storage:
  type: fs
  path: perf-results

Available commands and full options

autocannon-ci is a tool to run multiple HTTP/1.1 benchmarks, and generate the relative flamegraphs, with the help of 0x.

Available commands:

  • run (default)
  • compare
  • help

Run

Usage: autocannon-ci run [OPTS]

Runs the benchmarks configured in the autocannon-ci configuration file, and
save them according to the storage configured in the config file. The job id
is used to identify the single run.

Options:

  --config/-c CONFIG      Use the given config file; default: `autocannon.yml`.
  --job/-j ID             Use the specific job id.
  --flamegrah/-F          Generate and store flamegraphs.

Compare

Usage: autocannon-ci compare [OPTS] [A] [B]

Compare the job with id A against the job id B. A and B are defaulted to the
latest two jobs.

Options:

  --config/-c CONFIG      Use the given config file; default: `autocannon.yml`.
Launch 'autocannon-ci help [command]' to know more about the commands.

Storage

autocannon-ci can store the results and flamegraphs within a storage, which is configured in the config file.

type: fs

storage:
  type: fs
  path: perf-results

type: s3

storage:
  type: s3
  bucket: autocannon-ci-test
  region: us-west-2

This will also require the environment variables S3_ACCESS_KEY and S3_SECRET_KEY containing the proper credentials to access S3. It uses the aws-sdk, so any other way of configuring the credential for that will work for autocannon-ci as well.

Acknowledgements

This project was kindly sponsored by nearForm.

License

MIT