{"id":20387017,"url":"https://github.com/cmdcolin/microbenchmarks","last_synced_at":"2026-04-20T07:01:52.823Z","repository":{"id":137213265,"uuid":"578511944","full_name":"cmdcolin/microbenchmarks","owner":"cmdcolin","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-13T16:52:44.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T10:21:29.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/cmdcolin.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-15T08:28:11.000Z","updated_at":"2025-12-13T16:52:48.000Z","dependencies_parsed_at":"2023-07-23T12:15:07.495Z","dependency_job_id":null,"html_url":"https://github.com/cmdcolin/microbenchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cmdcolin/microbenchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdcolin%2Fmicrobenchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdcolin%2Fmicrobenchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdcolin%2Fmicrobenchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdcolin%2Fmicrobenchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmdcolin","download_url":"https://codeload.github.com/cmdcolin/microbenchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdcolin%2Fmicrobenchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32036801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":[],"created_at":"2024-11-15T02:42:20.499Z","updated_at":"2026-04-20T07:01:52.801Z","avatar_url":"https://github.com/cmdcolin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## dist/async_tight_loop.test.js\n```\nNANOBENCH version 2\n\u003e /home/cdiesh/.fnm/node-versions/v20.2.0/installation/bin/node dist/async_tight_loop.test.js\n\n# async tight loop\nok ~1.56 s (1 s + 556574770 ns)\n\n# non-async tight loop\nok ~46 ms (0 s + 45541867 ns)\n\nall benchmarks completed\nok ~1.6 s (1 s + 602116637 ns)\n\n```\n## dist/frequency_table.test.js\n```\nNANOBENCH version 2\n\u003e /home/cdiesh/.fnm/node-versions/v20.2.0/installation/bin/node dist/frequency_table.test.js\n\n# reduce+optional chaining\nok ~3.47 s (3 s + 470743215 ns)\n\n# fromEntries+map-\u003eobject+reduce\nok ~5.22 s (5 s + 224902154 ns)\n\n# bit twiddle+object+reduce\nok ~4.24 s (4 s + 239836790 ns)\n\n# reduce+map\nok ~5.14 s (5 s + 143754532 ns)\n\n# for loop+obj+bit twiddle\nok ~3.27 s (3 s + 268974131 ns)\n\n# for loop+map+bit twiddle\nok ~3.84 s (3 s + 837402211 ns)\n\nall benchmarks completed\nok ~25 s (25 s + 185613033 ns)\n\n```\n## dist/obj_vs_map.test.js\n```\nNANOBENCH version 2\n\u003e /home/cdiesh/.fnm/node-versions/v20.2.0/installation/bin/node dist/obj_vs_map.test.js\n\n# object.fromentries\nok ~7.8 s (7 s + 802406461 ns)\n\n# new map\nok ~7.53 s (7 s + 533272586 ns)\n\nall benchmarks completed\nok ~15 s (15 s + 335679047 ns)\n\n```\n## dist/pre_allocate_array.test.js\n```\nNANOBENCH version 2\n\u003e /home/cdiesh/.fnm/node-versions/v20.2.0/installation/bin/node dist/pre_allocate_array.test.js\n\n# no pre-allocate\nok ~1.96 s (1 s + 956168252 ns)\n\n# pre-allocate\nok ~1.1 s (1 s + 98236108 ns)\n\n# pre-allocate and fill\nok ~1.19 s (1 s + 189720910 ns)\n\nall benchmarks completed\nok ~4.24 s (4 s + 244125270 ns)\n\n```\n## dist/remove_newlines.test.js\n```\nNANOBENCH version 2\n\u003e /home/cdiesh/.fnm/node-versions/v20.2.0/installation/bin/node dist/remove_newlines.test.js\n\n# replaceAll newline char\nok ~9.08 s (9 s + 76033004 ns)\n\n# replaceAll newline regex\nok ~9.52 s (9 s + 524155996 ns)\n\n# regex whitespace\nok ~9.4 s (9 s + 397826086 ns)\n\n# regex newline\nok ~9.94 s (9 s + 935248062 ns)\n\nall benchmarks completed\nok ~38 s (37 s + 933263148 ns)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdcolin%2Fmicrobenchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmdcolin%2Fmicrobenchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdcolin%2Fmicrobenchmarks/lists"}