{"id":21004820,"url":"https://github.com/halfzebra/array-search-benchmark","last_synced_at":"2025-06-13T03:37:25.575Z","repository":{"id":73687534,"uuid":"76351189","full_name":"halfzebra/array-search-benchmark","owner":"halfzebra","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-28T13:51:01.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T14:29:00.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halfzebra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2016-12-13T11:05:37.000Z","updated_at":"2025-02-20T23:33:12.000Z","dependencies_parsed_at":"2023-02-25T10:46:32.282Z","dependency_job_id":null,"html_url":"https://github.com/halfzebra/array-search-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/halfzebra/array-search-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-search-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-search-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-search-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-search-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halfzebra","download_url":"https://codeload.github.com/halfzebra/array-search-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halfzebra%2Farray-search-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259574549,"owners_count":22878732,"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":[],"created_at":"2024-11-19T08:38:06.490Z","updated_at":"2025-06-13T03:37:25.542Z","avatar_url":"https://github.com/halfzebra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Array Search Benchmark\n\nThis benchmark is focused on determining the fastest way to find if object is in the array by the property or by the reference.\n\n\n\n```bash\n$ node -v\nv6.5.0\n\n$ node test\n\nBy property\n\nArray#some es5 x 9,225 ops/sec ±1.36% (87 runs sampled)\nArray#some es6 arrow deconstruction x 8,860 ops/sec ±1.49% (87 runs sampled)\nArray#find es5 x 10,587 ops/sec ±1.40% (85 runs sampled)\nArray#find es6 arrow deconstruction x 9,782 ops/sec ±1.90% (86 runs sampled)\nArray#filter es5 x 6,890 ops/sec ±1.29% (85 runs sampled)\nArray#filter es6 arrow deconstruction x 6,580 ops/sec ±2.55% (84 runs sampled)\n\nFastest is Array#find es5\nSlowest is Array#filter es6 arrow deconstruction\n\nBy reference\n\nArray#includes es7 x 10,630 ops/sec ±1.39% (85 runs sampled)\nArray#indexOf es5 x 267,177 ops/sec ±1.30% (85 runs sampled)\n\nFastest is Array#indexOf es5\nSlowest is Array#includes es7\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfzebra%2Farray-search-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalfzebra%2Farray-search-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalfzebra%2Farray-search-benchmark/lists"}