{"id":20906203,"url":"https://github.com/distributedlife/array-join-performance","last_synced_at":"2025-10-15T18:39:07.670Z","repository":{"id":141571149,"uuid":"63948139","full_name":"distributedlife/array-join-performance","owner":"distributedlife","description":"Testing the performance of different array join approaches","archived":false,"fork":false,"pushed_at":"2016-07-22T11:41:45.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T14:24:14.706Z","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/distributedlife.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-07-22T11:24:11.000Z","updated_at":"2016-07-22T11:24:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"668e423b-52fe-49ee-942e-8e4d360d0c25","html_url":"https://github.com/distributedlife/array-join-performance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Farray-join-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Farray-join-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Farray-join-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Farray-join-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distributedlife","download_url":"https://codeload.github.com/distributedlife/array-join-performance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243297857,"owners_count":20268859,"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-18T13:29:27.206Z","updated_at":"2025-10-15T18:39:02.613Z","avatar_url":"https://github.com/distributedlife.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Joining Array Performance\n\nThree ways to join an array:\n\n~~~javascript\narr = arr.concat(other);\nArray.prototype.push.apply(arr, other);\narr.push(...other); //es6 spread\n~~~\n\nThe results are:\n\n~~~shell\nadd 1\nconcat x 13,014 ops/sec ±28.20% (17 runs sampled)\nprototype push x 7,894,593 ops/sec ±14.93% (70 runs sampled)\nes6 spread x 1,487,987 ops/sec ±4.12% (83 runs sampled)\nFastest is prototype push\n\nadd 5\nconcat x 3,001 ops/sec ±123.61% (7 runs sampled)\nprototype push x 1,472,618 ops/sec ±24.88% (62 runs sampled)\nes6 spread x 514,753 ops/sec ±9.14% (69 runs sampled)\nFastest is prototype push\n\nadd 10\nconcat x 1,179 ops/sec ±124.77% (5 runs sampled)\nprototype push x 788,978 ops/sec ±29.39% (48 runs sampled)\nes6 spread x 254,928 ops/sec ±17.68% (63 runs sampled)\nFastest is prototype push\n~~~","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Farray-join-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributedlife%2Farray-join-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Farray-join-performance/lists"}