{"id":17484682,"url":"https://github.com/ryanmcdermott/typed-arrays","last_synced_at":"2025-04-22T15:14:05.435Z","repository":{"id":65977381,"uuid":"67452053","full_name":"ryanmcdermott/typed-arrays","owner":"ryanmcdermott","description":"🚀 Performance comparison of JavaScript TypedArrays and native Arrays","archived":false,"fork":false,"pushed_at":"2016-10-19T05:33:53.000Z","size":75,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T15:13:58.666Z","etag":null,"topics":["array","arrays","javascript","performance"],"latest_commit_sha":null,"homepage":"http://ryanmcdermott.me/typed-arrays","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/ryanmcdermott.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":"2016-09-05T21:29:48.000Z","updated_at":"2024-03-27T23:48:45.000Z","dependencies_parsed_at":"2023-02-19T18:15:47.084Z","dependency_job_id":null,"html_url":"https://github.com/ryanmcdermott/typed-arrays","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/ryanmcdermott%2Ftyped-arrays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcdermott%2Ftyped-arrays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcdermott%2Ftyped-arrays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanmcdermott%2Ftyped-arrays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanmcdermott","download_url":"https://codeload.github.com/ryanmcdermott/typed-arrays/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250264913,"owners_count":21402004,"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","arrays","javascript","performance"],"created_at":"2024-10-19T01:05:17.146Z","updated_at":"2025-04-22T15:14:05.415Z","avatar_url":"https://github.com/ryanmcdermott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-typed-arrays-performance\n\n### Results\n| Operation     | Normal Array  | Int8Array     |\n| ------------- |:-------------:| -------------:|\n| *Sort*        | 49.10 ops/sec | 48.02 ops/sec |\n| *Read*        | 5,214,320 ops/sec              |  5,265,962 ops/sec          |\n| *Write*       | **4,465,988 ops/sec**              | ~~4,182,763 ops/sec~~           |\n| *Clone*       | ~~1,271 ops/sec~~              | ***3,959 ops/sec***          |\n\n\n| Operation     | Normal Array  | Uint8Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        | 44.16 ops/sec | 43.54 ops/sec  |\n| *Read*        | 5,416,085 ops/sec | 5,257,924 ops/sec   |\n| *Write*       | ***4,720,822 ops/sec***              | ~~4,012,445 ops/sec~~           |\n| *Clone*       | ~~1,287 ops/sec~~               | ***1,725 ops/sec***            |\n\n\n| Operation     | Normal Array  | Uint8ClampedArray |\n| ------------- |:-------------:| ----------:|\n| *Sort*        | 52.82 ops/sec               | 48.43 ops/sec            |\n| *Read*        | 5,317,178 ops/sec              | 5,512,177 ops/sec           |\n| *Write*       | ***4,769,089 ops/sec***               | ~~4,158,825 ops/sec~~           |\n| *Clone*       | ~~1,006 ops/sec~~               | ***3,027 ops/sec***           |\n\n\n| Operation     | Normal Array  | Int16Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        | 10.79 ops/sec | 8.02 ops/sec  |\n| *Read*        | 5,264,329 ops/sec              | 5,219,599 ops/sec             |\n| *Write*       | **4,735,680 ops/sec**              | ~~3,771,672 ops/sec~~            |\n| *Clone*       | ~~1,329 ops/sec~~              | **1,887 ops/sec**           |\n\n\n| Operation     | Normal Array  | Uint16Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        | **10.59 ops/sec**               | ~~3.26 ops/sec~~            |\n| *Read*        | **5,454,440 ops/sec**              | ~~4,998,838 ops/sec~~           |\n| *Write*       | **4,741,021 ops/sec**              | ~~3,544,992 ops/sec~~           |\n| *Clone*       | ~~1,059 ops/sec~~              | **3,323 ops/sec**           |\n\n\n| Operation     | Normal Array  | Int32Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        |  9.39 ops/sec             | 9.69 ops/sec            |\n| *Read*        |  5,398,342 ops/sec             | 5,459,182 ops/sec            |\n| *Write*       | **4,806,211 ops/sec**              | ~~4,085,358 ops/sec~~            |\n| *Clone*       | ~~1,161 ops/sec~~              | **2,692 ops/sec**           |\n\n\n| Operation     | Normal Array  | Uint32Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        |  4.40 ops/sec             | 4.95 ops/sec            |\n| *Read*        |  5,163,662 ops/sec             | 5,208,767 ops/sec           |\n| *Write*       |  **4,852,699 ops/sec**             | ~~4,082,368 ops/sec~~           |\n| *Clone*       |  ~~1,214 ops/sec~~               | **2,711 ops/sec**            |\n\n\n| Operation     | Normal Array  | Float32Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        | 3.82 ops/sec              | 5.10 ops/sec             |\n| *Read*        | 4,651,893 ops/sec              | 4,851,970 ops/sec             |\n| *Write*       | **4,775,146 ops/sec**              | ~~3,815,358 ops/sec~~           |\n| *Clone*       | ~~1,059 ops/sec~~              | **1,604 ops/sec**            |\n\n\n| Operation     | Normal Array  | Float64Array |\n| ------------- |:-------------:| ----------:|\n| *Sort*        | 3.40 ops/sec             | 2.91 ops/sec           |\n| *Read*        | 5,357,066 ops/sec              | 5,298,533 ops/sec            |\n| *Write*       | 4,263,899 ops/sec              | 3,783,920 ops/sec           |\n| *Clone*       | 1,297 ops/sec               |  1,266 ops/sec          |\n\n### Development\n```\ngit clone https://github.com/ryanmcdermott/typed-arrays.git\nnpm install\nnpm start\n```\n\nOpen the web browser and navigate to `http://localhost:8888/`\n\n### Build Production\nTo build a static version of site that is outputted to the `/docs` folder, run:\n```\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanmcdermott%2Ftyped-arrays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanmcdermott%2Ftyped-arrays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanmcdermott%2Ftyped-arrays/lists"}