pod4g / hiper Goto Github PK
View Code? Open in Web Editor NEW🚀 A statistical analysis tool for performance testing
License: MIT License
🚀 A statistical analysis tool for performance testing
License: MIT License
When running hiper --help or hiper baidu.com, the following error is returned:
/usr/local/lib/node_modules/hiper/src/index.js:36
performance.run(opts).then(async statisticData => {
^^^^^
SyntaxError: missing ) after argument list
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
Is this a problem in the latest release?
It would be a great idea to support js config file so Env variables can be used.
After npm install hiper -g
, hiper baidu.com
throws this exception:
/usr/bin/env: 'node --no-warnings': No such file or directory
I'm currently running Node 10 with nvm on Manjaro (Arch) Linux.
The total result is like the superposition of each test result. Is this logic theory wrong? For example, I get my DNS lookup time 2ms for the first time, and the second time will be 4ms, the third time will be 6ms, and the total result will be 40ms(count =20). This situation also appears in other indicators. I don't think this output result is reasonable. Look forward to your reply.
$ node -v
v6.11.2
$ npm -v
5.6.0
The wrong sample
$ hiper -v
C:\Users\Administrator\AppData\Roaming\npm\node_modules\hiper\src\index.js:36
performance.run(opts).then(async statisticData => {
^^^^^
SyntaxError: missing ) after argument list
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
$ npm install hiper -g
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "hiper" "-g"
npm ERR! node v6.10.1
npm ERR! npm v3.10.10
npm ERR! pkg._args.push is not a function
this could be one more metric in the analysis.
when browsing, i should be able to perf-check right from the browser and results should be siphoned back to the extension.
i try hiper --help
output:
/usr/local/lib/node_modules/hiper/src/index.js:24
performance.run(opts).then(async statisticData => {
^^^^^
SyntaxError: missing ) after argument list
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
node version:
v6.11.2
npm version:
5.6.0
mac os 10.12.6
I followed the example, inputhiper baidu.com
. and then,no any response and doesn't show any details.
求一个带cookie 调用的例子,目前带了cookies 之后无响应,无报错
When i run npm install hiper -g
, it has this error log:
ERROR: Failed to download Chromium r555668! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at _errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:628:25) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
How to fix it
Hi,
Installed yarn and hiper:
yarn global add hiper
yarn global v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- hiper
Done in 0.38s.
Issue the following:
hiper badu.com
/usr/bin/env: ‘node --no-warnings’: No such file or directory
thanks for help in advance.
I tried to input 'hiper baidu.com',but is nothing result.
Program stuck when i run script with URL like 'https://example.com/index.html#/ohh', which is a default hash mode vue-router. Then i debugger this source project, i got its exception stack as "Error: net::ERR_ABORTED at ... at navigate...", and all the performance static turns into "Nan ms".
🚀 It takes 0.26 s to load `` 20 times
Run interval 0.26 s
Total load times 20
DNS lookup time NaN ms
TCP connect time NaN ms
TTFB NaN ms
Download time of the page NaN ms
After DOM Ready download time NaN ms
White screen time NaN ms
DOM Ready time NaN ms
Load time NaN ms
might be easier to read :)
你好,能否支持electron客户端的性能测试?
通过 npm install hiper -g 报错:
ERROR: Failed to download Chromium r579032! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
Hi,
I'm designing for open source projects, expanding my portfolio. I want designing an icon for your project. There are a few ideas in my mind, I hope you accept and I do them. If you have an idea, please let me know. In this way we create a icon.
Best Regards.
For example: hiper baidu.com, it's ok. However, hiper qq.com, It's nothing result.
node (v16.14.0)运行报错
Would it be possible to add a switch to get the output encoded in JSON?
This might be useful for automated monitoring, e.g. for pushing the data to InfluxDB or something.
I think it would make sense for the tool to automatically append https:// to the domain, since all websites should be served over https?
Maybe it could report if https was not available and continue to test http:// ?
Thanks for making this great tool!
I think the current network condition should be considered.
node v12.16.1
npm 6.13.4
It looks like the command is never end
I recently installed Hiper and this issue is showing everytime I try to use it...
C:\Users\theas\AppData\Roaming\npm\node_modules\hiper\src\index.js:36
performance.run(opts).then(async statisticData => {
^^^^^
SyntaxError: missing ) after argument list
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.