{"id":13726006,"url":"https://github.com/zandaqo/iswasmfast","last_synced_at":"2025-04-10T01:07:14.463Z","repository":{"id":22096681,"uuid":"95226856","full_name":"zandaqo/iswasmfast","owner":"zandaqo","description":"Performance comparison of WebAssembly, C++ Addon, and native implementations of various algorithms in Node.js.","archived":false,"fork":false,"pushed_at":"2023-01-07T03:55:47.000Z","size":794,"stargazers_count":195,"open_issues_count":3,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T01:07:10.038Z","etag":null,"topics":["cpp","nodejs","performance","webassembly"],"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/zandaqo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-23T14:18:26.000Z","updated_at":"2024-10-04T05:39:04.000Z","dependencies_parsed_at":"2023-01-14T00:00:30.754Z","dependency_job_id":null,"html_url":"https://github.com/zandaqo/iswasmfast","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/zandaqo%2Fiswasmfast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandaqo%2Fiswasmfast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandaqo%2Fiswasmfast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zandaqo%2Fiswasmfast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zandaqo","download_url":"https://codeload.github.com/zandaqo/iswasmfast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137887,"owners_count":21053775,"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":["cpp","nodejs","performance","webassembly"],"created_at":"2024-08-03T01:02:46.946Z","updated_at":"2025-04-10T01:07:14.448Z","avatar_url":"https://github.com/zandaqo.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# iswasmfast\n\n[![npm](https://img.shields.io/npm/v/iswasmfast.svg?style=flat-square)](https://www.npmjs.com/package/iswasmfast)\n[![Actions Status](https://github.com/zandaqo/iswasmfast/workflows/Build/badge.svg)](https://github.com/zandaqo/iswasmfast/actions)\n\nPerformance comparison of WebAssembly, C++ Addon, and native implementations of various algorithms in Node.js.\n\nRead more in [JavaScript ♥ C++: Modern Ways to Use C++ in JavaScript Projects](https://medium.com/@zandaqo/javascript-c-modern-ways-to-use-c-in-javascript-projects-a19003c5a9ff) \n\n## Benchmark\n```\n\u003e node benchmark.js\n\nLevenstein Distance:\n   Native x 295,433 ops/sec ±9.40% (72 runs sampled)\n   N-API Addon x 308,924 ops/sec ±9.46% (73 runs sampled)\n   Web Assembly x 210,776 ops/sec ±9.16% (76 runs sampled)\n Fastest is N-API Addon\n\nFibonacci:\n   Native x 4,044,156 ops/sec ±9.88% (61 runs sampled)\n   N-API Addon x 5,204,691 ops/sec ±10.09% (62 runs sampled)\n   Web Assembly x 11,508,910 ops/sec ±9.31% (74 runs sampled)\n Fastest is Web Assembly\n\nFermat Primality Test:\n   Native x 1,678,845 ops/sec ±9.96% (65 runs sampled)\n   N-API Addon x 1,833,692 ops/sec ±9.83% (62 runs sampled)\n   Web Assembly x 2,402,964 ops/sec ±10.66% (72 runs sampled)\n Fastest is Web Assembly\n\nSimple Linear Regression:\n   Native x 291,985 ops/sec ±9.67% (74 runs sampled)\n   N-API Addon x 3,710 ops/sec ±10.16% (66 runs sampled)\n   N-API Addon using TypedArrays x 66,902 ops/sec ±8.24% (77 runs sampled)\n   Web Assembly x 37,117 ops/sec ±10.07% (62 runs sampled)\n   Web Assembly using TypedArrays x 42,521 ops/sec ±10.21% (64 runs sampled)\n Fastest is Native\n\nSHA256:\n   Native x 13,453 ops/sec ±15.02% (64 runs sampled)\n   N-API Addon x 67,807 ops/sec ±10.24% (64 runs sampled)\n   Web Assembly x 34,445 ops/sec ±10.08% (57 runs sampled)\n Fastest is N-API Addon\n```\n\n## Installation\nPlease note that this module requires Node.js 8.6 and above. If you want to rebuild the WebAssembly module\nyourself, you'll also need the latest Emscripten SDK installed on your machine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzandaqo%2Fiswasmfast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzandaqo%2Fiswasmfast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzandaqo%2Fiswasmfast/lists"}