用于性能测试的统计分析工具
English | 中文
A statistical analysis tool for performance testing
The name is short for Hi performance Or High performance
Hi guys, Please present your issue in English
请使用英语提issue
npm install hiper -g
# or use yarn:
# yarn global add hiperNotice: 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
| 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
…For instance
….json and .js config…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
module.exports = {
....
cookies: [{
name: 'token',
value: process.env.authtoken,
domain: 'example.com',
path: '/',
httpOnly: true
}],
....
}# 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.jsAfter 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
Welcome Star and PR
Copyright (c) 2018 liyanfeng(pod4g)
暂无开放 Issues,或尚未同步最近议题。