{"_id":"@alireza-ab/performance-check","_rev":"1-1da20e1ff48d9317790c933184755934","name":"@alireza-ab/performance-check","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alireza-ab/performance-check","version":"1.0.0","description":"a library to check code performance","main":"./src/performance.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["performance","javascript","js","checker","code"],"author":{"name":"alireza alibeiki"},"license":"MIT","dependencies":{},"gitHead":"c8f3097aae55c88e4e38f884734c4c46e15f2d42","_id":"@alireza-ab/performance-check@1.0.0","_nodeVersion":"14.9.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-o+KMkA9+gtsSm+Z1nVxnZ4SkDaZqKzW1v9Rhury3ecpaV/XOuyCaRmxbfrw1CaCFvz+eQFqshXAxP7svZQNu6A==","shasum":"5744b11046b65adf075e10c94fd65ace0ca731ea","tarball":"https://registry.npmjs.org/@alireza-ab/performance-check/-/performance-check-1.0.0.tgz","fileCount":3,"unpackedSize":3300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfp4ZCCRA9TVsSAnZWagAA59cP/3IqjAKjlxFie0ap9zZE\nv7V5u/8R/J4ZSzlmzMWOb+gq+rW55Bb8XO7yONHUu5K7PbuuACLM98pAkSDU\nxvvDd7DLPbrlKAWU9sphIx9GWhUTcs+gAbTb6qoccp+WQr+V+dlwzaN+j39W\ndGfxZ1xwKb9nTcGxsI1XTeiAVIOyd9IWPUhR4FwuXC6uQKD93sS3hJmZEVa4\n1ttjXTclyL5Hy40iHu7cWyntqlrvDj8VTDM7Wuiu33oI3U0Dty8UB8Ft2YGY\nhHGVTQIgDi11exqTSxZPiVwp16a/eJrtw33ugLyL/uznveHSPXoZ5DBxV9ZD\nAUx8uqNtlO9j6fQ49MiOm1lM1ECDxc2bE8p5jSm2GnFRjiyXx+f9YUtCl8i2\ngigEuFJMkPfebqdLiFHFdc+kiAGB8jUDx/3HyatVWYVYPd5eDoXQJ/XU9AE7\nTgLRszGKdpKe35imfBWpnz2CDepU0NoYqweZmeMS2hGDBg1V5us9JJvMsDQc\nZv/GzvozeUUjVGoZMAvWzK+6FYNSrr2RYmlVVSqoB/ZmPfxE0DCHC/8WMhy4\ntRphKUb7ozIfwJgJQ8uWuVMKCcapZsUMJdSg0WO+v9Y6Fw6MaChAmopdmwyY\nmfBgHbmwZ7bxU66AWfdWge/fPNUPYHcY5ooamlUkPmomqb01q/AeYK9DPIsP\nT+eK\r\n=q47s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCR5LXZaLilNDamLMQw9k1q12OrpPB0m+jmfPPTFL5FEAIhAJgYunLx6CNqrNVs8WhciUrgrIc/MopIp7lbh/ZXuo1m"}]},"_npmUser":{"name":"alireza-ab","email":"alibeikialireza@gmail.com"},"directories":{},"maintainers":[{"name":"alireza-ab","email":"alibeikialireza@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/performance-check_1.0.0_1604814401539_0.8536990216130265"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-08T05:46:41.506Z","1.0.0":"2020-11-08T05:46:41.713Z","modified":"2022-04-04T13:27:38.332Z"},"maintainers":[{"name":"alireza-ab","email":"alibeikialireza@gmail.com"}],"description":"a library to check code performance","keywords":["performance","javascript","js","checker","code"],"author":{"name":"alireza alibeiki"},"license":"MIT","readme":"# Performance Check\n\nthe simple script for check the performance of javascript code with Date and performance and console.time APIs.\n\n## Installation\n\n```shell\nnpm install @alireza-ab/performance-check\n```\n\n## Usage\n\n```js\nconst Performance = require(\"@alireza-ab/performance-check\");\n```\n\n```js\nlet forArr = [];\nPerformance.start(\"for loop\");\nfor (let i = 0; i < 1000; i++) {\n\tforArr.push(i);\n}\nPerformance.end(\"for loop\");\n\n//\t\t\t||\n//\t\t\t||\n//\t\t    \\/\n\n// performance of for loop:\n//   performance interface: (n)ms\n//   Date library: (n)ms\n//   for loop: (n)ms\n\nlet whileArr = [];\nlet i = 0;\nPerformance.start(\"while loop\");\nwhile (i < 1000) {\n\twhileArr.push(i);\n\ti++;\n}\nPerformance.end(\"while loop\");\n\n//\t\t\t||\n//\t\t\t||\n//\t\t    \\/\n\n// performance of while loop:\n//   performance interface: (n)ms\n//   Date library: (n)ms\n//   while loop: (n)ms\n```\n\nif the parameter not passed\n\n```js\nlet forArr = [];\nPerformance.start();\nfor (let i = 0; i < 1000; i++) {\n\tforArr.push(i);\n}\nPerformance.end();\n\n//\t\t\t||\n//\t\t\t||\n//\t\t    \\/\n\n// performance of 1st code:\n//   performance interface: (n)ms\n//   Date library: (n)ms\n//   1st code: (n)ms\n```\n\n## License\n\nPerformance-check is available under the [MIT](https://opensource.org/licenses/MIT) license.\n","readmeFilename":"readme.md"}