Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hiper

> 前端框架
Open source

A statistical analysis tool for performance testing

2.7K stars0 likes1 views
WebsiteGitHub

About

A statistical analysis tool for performance testing

English | 中文

A statistical analysis tool for performance testing

Hiper

The name is short for Hi performance Or High performance

Important

Hi guys, Please present your issue in English

请使用英语提issue

Install

bash
npm install hiper -g

# or use yarn:
# yarn global add hiper

The output

Notice: It takes period (m)s to load .... the period means This test takes time. So -n go up and the period go up. not a bug

PerformanceTiming

Key Value
DNS lookup time domainLookupEnd - domainLookupStart
TCP connect time connectEnd - connectStart
TTFB responseStart - requestStart
Download time of the page responseEnd - responseStart
After DOM Ready download time domComplete - domInteractive
White screen time domInteractive - navigationStart
DOM Ready time domContentLoadedEventEnd - navigationStart
Load time loadEventEnd - navigationStart

https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming

Usage

…

For instance

…

Config

Support .json and .js config

  1. json
…
  1. js

Having a JS file for config allows people to use ENV variables. For example, let's say I want to test the site on an authenticated state. I can pass some cookie that is used to identify me through ENV variables and having a JS based config file makes this simple. For example

javascript

module.exports = {
    ....
    cookies:  [{
        name: 'token',
        value: process.env.authtoken,
        domain: 'example.com',
        path: '/',
        httpOnly: true
    }],
    ....
}
bash
# Load the above configuration file (Let's say this file is under /home/)
hiper -c /home/config.json

# Or you can also use JS files for configuration
hiper -c /home/config.js

Pain point

After we have developed a project or optimized the performance of a project,

how do we measure the performance of this project?

A common approach is to look at the data in the performance and network in the Dev Tool, record a few key performance metrics, and refresh them a few times before looking at those performance metrics,

Sometimes we find that due to the small sample size, the current Network/CPU/Memory load is heavily impacted, and sometimes the optimized project is slower than before the optimization.

If there is a tool, request web page many times, and then taking out the various performance indicators averaging, we can very accurately know the optimization is positive or negative.

In addition, you can also make a comparison and get accurate data about how much you have optimized. This tool is designed to solve the pain point.

At the same time, this tool is also a good tool for us to learn about the "browser's process of load and rendering" and "performance optimization", so that we don't get wrong conclusions when there are too few samples

Roadmap

  1. Better documentation
  2. i18n
  3. Increase the analysis statistics of resource items loaded on the page
  4. Statistical reports can be generated
  5. Data visualization

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

Welcome Star and PR

Copyright (c) 2018 liyanfeng(pod4g)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptanalysisauditsbroswercli

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架