{"id":20196229,"url":"https://github.com/shaikrasheed99/javascript-iterations-performance-test","last_synced_at":"2025-03-03T08:13:56.759Z","repository":{"id":113142393,"uuid":"600470942","full_name":"shaikrasheed99/javascript-iterations-performance-test","owner":"shaikrasheed99","description":"Performance test of JavaScript iterations","archived":false,"fork":false,"pushed_at":"2023-04-17T13:12:28.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T19:39:09.419Z","etag":null,"topics":["array-methods","iterations","javascript","javascript-array-methods","javascript-loops","loops","performace-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/shaikrasheed99.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,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T15:46:10.000Z","updated_at":"2023-02-11T15:49:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"10f95ccb-5664-4f5e-980b-642885bf7606","html_url":"https://github.com/shaikrasheed99/javascript-iterations-performance-test","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/shaikrasheed99%2Fjavascript-iterations-performance-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fjavascript-iterations-performance-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fjavascript-iterations-performance-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaikrasheed99%2Fjavascript-iterations-performance-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaikrasheed99","download_url":"https://codeload.github.com/shaikrasheed99/javascript-iterations-performance-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241629769,"owners_count":19993710,"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":["array-methods","iterations","javascript","javascript-array-methods","javascript-loops","loops","performace-testing"],"created_at":"2024-11-14T04:22:38.207Z","updated_at":"2025-03-03T08:13:56.738Z","avatar_url":"https://github.com/shaikrasheed99.png","language":"JavaScript","readme":"# Performance test of JavaScript iterations\n\nWe have few techniques to iterate over the arrays, objects and strings. \n\nTested the each technique with 1 Million iterations and executed the `test.js` file for `5` times using the `for i in {1..5}; node test.js;` command. \n\n## Results \n* `While` loop - 1.4ms\n* `Do while` loop - 0.8ms\n* `For` loop - 0.8ms\n* `For Of` loop - 9.5ms\n* `For In` loop - 137ms\n* `Map` method - 8.5ms\n* `Filter` method - 7.2ms\n* `Reduce` method - 6.4ms\n* `Sort` method - 11.7ms\n* `Every` method - 7.2ms\n* `Some` method - 6.8ms\n* `Chaining methods` - 16.3ms","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fjavascript-iterations-performance-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaikrasheed99%2Fjavascript-iterations-performance-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaikrasheed99%2Fjavascript-iterations-performance-test/lists"}