{"id":13847142,"url":"https://github.com/ivan-tymoshenko/node-benchmarks","last_synced_at":"2025-09-14T01:31:11.223Z","repository":{"id":44176044,"uuid":"117095065","full_name":"ivan-tymoshenko/node-benchmarks","owner":"ivan-tymoshenko","description":"Benchmark library for NodeJs","archived":false,"fork":false,"pushed_at":"2022-02-11T05:38:43.000Z","size":22309,"stargazers_count":6,"open_issues_count":6,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T12:05:28.405Z","etag":null,"topics":["benchmark","benchmark-framework","benchmarking","benchmarks","javascript","js","node","node-js","nodejs","performance","performance-testing","testing"],"latest_commit_sha":null,"homepage":"","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/ivan-tymoshenko.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}},"created_at":"2018-01-11T12:05:14.000Z","updated_at":"2022-11-15T18:02:31.000Z","dependencies_parsed_at":"2022-08-19T16:10:39.459Z","dependency_job_id":null,"html_url":"https://github.com/ivan-tymoshenko/node-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivan-tymoshenko/node-benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fnode-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fnode-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fnode-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fnode-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivan-tymoshenko","download_url":"https://codeload.github.com/ivan-tymoshenko/node-benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivan-tymoshenko%2Fnode-benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275051483,"owners_count":25396978,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["benchmark","benchmark-framework","benchmarking","benchmarks","javascript","js","node","node-js","nodejs","performance","performance-testing","testing"],"created_at":"2024-08-04T18:00:55.874Z","updated_at":"2025-09-14T01:31:10.950Z","avatar_url":"https://github.com/ivan-tymoshenko.png","language":"JavaScript","readme":"# Benchmark library for NodeJs\n\n[![TravisCI](https://travis-ci.org/bugagashenkj/node-benchmarks.svg?branch=master)](https://travis-ci.org/bugagashenkj/node-benchmarks)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/79d81f700ad441568d1dc6cca687ea77)](https://www.codacy.com/app/bugagashenkj/node-benchmarks)\n\n`node-benchmarks` is a library for testing the execution time of functions and comparing functions by speed.\n\n## Features\n\n- Tests synchronous and asynchronous functions\n- Detects anomalies of testing and filters them out\n- Compares functions by execution time\n- Can run optimizing iterations before testing\n- Tests each function in a separate process\n- Test each function sequentially\n- Gets optimization status of test function\n\n## Speed test\n\n`speed(caption, fns, [, options])`\n\n- `caption` - test caption\n- `fns` - array of test functions\n- `options` - test options(optional)\n  - `count` - number of test iterations\n  - `startCount` - number of first optimizing iterations\n  - `anomalyPercent` - maximum possible percent of anomalies\n\nExample:\n\n```JavaScript\nspeed('Benchmark example',\n  [f1, f2, f3, [f4, f5]], {\n    count: 250000,\n    anomalyPercent: 5,\n    startCount: 0\n});\n\n```\n\n- Synchronous test functions: `f1, f2, f3`\n- Asynchronous test functions(callback-last / err-first function): `f4, f5`\n\n## Contributors\n\n- See github for full [contributors list](https://github.com/bugagashenkj/node-benchmarks/graphs/contributors)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-tymoshenko%2Fnode-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivan-tymoshenko%2Fnode-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivan-tymoshenko%2Fnode-benchmarks/lists"}