UNPKG

node-test-performance

Version:

A node performance test you CPU

69 lines (51 loc) 2.17 kB
<p align="center"> <img src="https://raw.githubusercontent.com/andre2l2/node-test-performance/aedbf98be0488f0d3822f2995a517084b0a27ef4/hero.svg"> </p> <p align="center"> <img src="https://img.shields.io/npm/v/node-test-performance?color=blue&style=flat-square"> <img src="https://img.shields.io/bundlephobia/min/node-test-performance?color=red"> </p> This project was make to test your node perfomance before you run your project. ## How to install with npm: ```bash npm install node-test-performance ``` - Node versions: - [12.x.x](#node-v12xx) - [14.x.x](#node-v14xx) - [16.x.x](#node-v16xx) - [18.x.x](#node-v18xx) ## Pi(π) test ```javascript const { piTest } = require('node-test-performance'); // Runing with 8 decimal place // Show the time and pi number piTest(8); // Wait this finish ``` ## Node v12.x.x | CPU | KEY | TIME | CLOCK | | -------------------- | --- | ---------- | ------ | | Ryzen 3 2200g | 8 | 0m 35s 346 | 3.6GHz | | Intel Core I5-1135G7 | 8 | 0m 22s 083 | 2.4GHz | | Raspberry PI 3 | 8 | 5m 40s 980 | 1.4GHz | ## Node v14.x.x | CPU | KEY | TIME | CLOCK | | -------------------- | --- | ---------- | ------ | | Ryzen 3 2200g | 8 | 0m 37s 875 | 3.6GHz | | Intel Core I5-1135G7 | 8 | 0m 45s 736 | 2.4GHz | | Raspberry PI 3 | 8 | 6m 44s 009 | 1.4GHz | ## Node v16.x.x | CPU | KEY | TIME | CLOCK | | -------------------- | --- | ---------- | ------ | | Ryzen 3 2200g | 8 | 0m 36s 561 | 3.6GHz | | Intel Core I5-1135G7 | 8 | 0m 24s 972 | 2.4GHz | | Raspberry PI 3 | 8 | 4m 57s 541 | 1.4GHz | ## Node v18.x.x | CPU | KEY | TIME | CLOCK | | -------------------- | --- | ---------- | ------ | | Ryzen 3 2200g | 8 | 0m 33s 024 | 3.6GHz | | Intel Core I5-1135G7 | 8 | 0m 23s 169 | 2.4GHz | | Raspberry PI 3 | 8 | 4m 50s 256 | 1.4GHz | ## How to you can contibuinte with this project After you makad test you can open a pull request here, and add the name of your CPU and time in List of the times. Less time more performace