{"_id":"@bestest/execution","_rev":"1-7f5c23c77a45d108d60c491ea8f1471c","name":"@bestest/execution","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@bestest/execution","version":"1.0.1","description":"Execution-related helper functions, required for Bestest benchmarking.","publishConfig":{"access":"public"},"main":"./index","types":"./index.d.ts","scripts":{"clean":"rimraf lib/**/*.{js,d.ts} index.{js,d.ts}","build":"npm run clean && tsc -p ./tsconfig.json","lint":"tslint -p ./tsconfig.json -c tslint.json","ts-check":"tsc -p ./tsconfig.json --noEmit","test":"npm run ts-check && npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/rangoo94/bestest.git"},"bugs":{"url":"https://github.com/rangoo94/bestest/issues"},"keywords":["bestest","measure","measurement","performance","time","stats","statistics","benchmark","benchmarking"],"author":{"name":"Dawid Rusnak","email":"dawid@drcode.pl"},"license":"MIT","devDependencies":{"@types/node":"^12.7.0","rimraf":"^2.6.3","ts-node":"^8.3.0","tslint":"^5.18.0","tslint-config-standard":"^8.0.1","typescript":"^3.5.3"},"dependencies":{"@bestest/math":"^1.0.1","@bestest/task-schedulement":"^1.0.0","@bestest/time-measurement":"^1.0.1","@bestest/utils":"^1.0.0"},"homepage":"https://github.com/rangoo94/bestest#readme","_id":"@bestest/execution@1.0.1","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-+9FegYZtayoLUnJdudWmZqI5k1R1vpMWSOu67EqVlLZdJggZwVUNB3fHoo7RcxPRDih8wLLiaxSvX6gU7U2mDQ==","shasum":"4f12729a8c057e78ce1adb9962cab059ac497c33","tarball":"https://registry.npmjs.org/@bestest/execution/-/execution-1.0.1.tgz","fileCount":64,"unpackedSize":69071,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSt/sCRA9TVsSAnZWagAALGcP/jghrHoD4qXOWwujhHAu\n2lADCnEeaFH/4ESgzY/6YwsZQ2Hlijg6zNKUvBtgBx9eLrXZMEMLuN6gLHAH\nbQKV03gtA0qBfZNJyEhNTXE7Pc2Ren98C05oiDEbvmLBck0BdGaWWBTM2hW5\nCU1W0ff/TAejq8EDHcgb+8zcoM0OtB5A94pXXCTiC+Un222PIy/6fHf5tWzY\nJpWZLuNDh6tiv0tbFNDtEKoFvsXg88psrPMd/NJBFPC2UjjIq570XVxJ5DoE\nlOTRVSh92dhDnMzOgZ8i2hi7WNgJE6mhwCwrGRksP6ufV56AaNvJbMoyfqfJ\nZHczDqSFvs2pShAdZ/vk4RSMdut43dKka4OoJPyV0oxUyXsL/xMtquOdWgin\nqBbFuLtLzVCjuPHIlTBw7aCOq5sanwf9vgRbpqEkG/b3WuAdw94O0rwIrcQO\nlc+GbPwo0S2OWLU6KjURgQxqGJ+DJ56pz01/jGsQIq4z3TtVGAibo9F52k5n\nfdUvRplw4oXb4xI6dys2ksPiNJ6vPoRFmRBecJkq4KqT9fE5ltGEHe/dnp+/\nXA+ViDihrDSz0154fi9RHpZcJtayqiuGwtn7BF2p75aFvAMn/B4z7/zup7WF\njpmjpAD2UWMq1RZqsDEgGZ+/20UTvzTxFT9u57i32AZY7owbMwJeYkNR567U\n6GwB\r\n=QzZP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYnspUaxVPmRprh4vmPf1qPj7BhQNxq2IS2Z3+LKLD5AiA0qmuvpY1ynHteztePqb6MOUlQFqyv7J0gvSKeUIefOA=="}]},"maintainers":[{"name":"rangoo","email":"dawid@drcode.pl"}],"_npmUser":{"name":"rangoo","email":"dawid@drcode.pl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/execution_1.0.1_1565188076412_0.8877618215553278"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-07T14:27:56.201Z","1.0.1":"2019-08-07T14:27:56.550Z","modified":"2022-04-04T18:33:37.333Z"},"maintainers":[{"name":"rangoo","email":"dawid@drcode.pl"}],"description":"Execution-related helper functions, required for Bestest benchmarking.","homepage":"https://github.com/rangoo94/bestest#readme","keywords":["bestest","measure","measurement","performance","time","stats","statistics","benchmark","benchmarking"],"repository":{"type":"git","url":"git+https://github.com/rangoo94/bestest.git"},"author":{"name":"Dawid Rusnak","email":"dawid@drcode.pl"},"bugs":{"url":"https://github.com/rangoo94/bestest/issues"},"license":"MIT","readme":"# @bestest/execution\n\nHelpers to measure function execution time. Required for Bestest benchmarking tool.\n\n# Example\n\n```js\nconst { measureFunctionExecution } = require('@bestest/execution')\n\nconst testCase = () => Math.random()\nconst testOptions = {\n  maxExecutionsPerSample: Infinity,\n  includeDetails: false\n}\n\nmeasureFunctionExecution(testCase, testOptions, measurement => {\n  console.log(measurement)\n\n  // Remember, that presented time is in picoseconds (10^-12 s)\n  //\n  // {\n  //   timePrecision: 23.12480712166172,\n  //   executionsPerSample: 2696,\n  //   concurrentExecutions: 1,\n  //   startTime: 132188876478633000,\n  //   endTime: 132189876488453000,\n  //   took: 1000009820000,\n  //   executions: { total: 134516921, successful: 134516921, failed: 0 },\n  //   timeEntries: undefined\n  // }\n})\n```\n\n## Changelog\n\n* **1.0.0** (on 2019-08-07): initial version\n","readmeFilename":"README.md"}