{"id":26682766,"url":"https://github.com/n-ce/pitstop","last_synced_at":"2025-03-26T08:28:04.545Z","repository":{"id":235563126,"uuid":"624309695","full_name":"n-ce/pitStop","owner":"n-ce","description":"🏎️ 💨 An easy to use and simple performance comparison, analysis and testing suite for JavaScript Functions. Only 0.8KB.","archived":false,"fork":false,"pushed_at":"2023-04-08T04:44:45.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-23T21:29:47.363Z","etag":null,"topics":["javascript-performance","profiling","test-suite"],"latest_commit_sha":null,"homepage":"https://cdn.jsdelivr.net/gh/n-ce/pitStop/pitStop.js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n-ce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-06T07:28:42.000Z","updated_at":"2024-04-23T21:29:51.990Z","dependencies_parsed_at":"2024-04-23T21:29:50.817Z","dependency_job_id":"8e9baa84-51ee-4e54-be41-e3d93fe3e4c0","html_url":"https://github.com/n-ce/pitStop","commit_stats":null,"previous_names":["n-ce/pitstop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-ce%2FpitStop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-ce%2FpitStop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-ce%2FpitStop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-ce%2FpitStop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n-ce","download_url":"https://codeload.github.com/n-ce/pitStop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245617676,"owners_count":20644860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript-performance","profiling","test-suite"],"created_at":"2025-03-26T08:28:03.966Z","updated_at":"2025-03-26T08:28:04.540Z","avatar_url":"https://github.com/n-ce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏎️ 💨 PITSTOP\n![](https://data.jsdelivr.com/v1/package/gh/n-ce/pitStop/badge)\n### Console based Basic performance testing, comparison and analysis suite for JavaScript functions\n```\npitStop(\n  1000, // iterations\n  [], // put function args inside the array if required\n  forLoop, whileLoop // functions to compare\n);\npitStop(\n  100000,\n  [12, 5],\n  lcmLow, lcmHigh, lcmgcd, lcmgcddr\n);\n```\n![20230406_134840](https://user-images.githubusercontent.com/69345507/230317578-c569211b-d87c-479c-8b22-5fdb6843e3a0.jpg)\n\n\n### Suite\n  - **pitStop()** : provides a console table with relevant comparison analysis.\n  - **timeTaken()** : provides time taken for a function to compute.\n  - **randomNum()** : generates random number for inputs.\n\n### Usage\n ```\n import { pitStop } from 'https://cdn.jsdelivr.net/gh/n-ce/pitStop/pitStop.js';\n ```\n - The pitStop function takes three parameters mainly\n - The First parameter is the number of times you want to run functions\n - The Second parameter is an array which takes your function arguments if required otherwise leave it null\n - The Third parameter is a rest parameter which takes your function names\n - ex : pitStop(1000,[arg1,arg2,....],f1,f2,f3,....)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn-ce%2Fpitstop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn-ce%2Fpitstop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn-ce%2Fpitstop/lists"}