{"id":19501748,"url":"https://github.com/gregyjames/tsunami","last_synced_at":"2025-09-02T16:36:14.741Z","repository":{"id":175290768,"uuid":"653338907","full_name":"gregyjames/tsunami","owner":"gregyjames","description":"A High Performance C# wrapper that allows you to get the benefits of SIMD Intrinsics on List\u003cT\u003e.","archived":false,"fork":false,"pushed_at":"2024-01-08T17:06:23.000Z","size":372,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-04T05:11:17.549Z","etag":null,"topics":["csharp","dotnet","dotnet-core","dotnetstandard","dotnetstandart20","hacktoberfest","hacktoberfest-accepted","high-performance","high-performance-computing","math","mathematics","simd","simd-intrinsics","simd-parallelism","simd-programming"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Tsunami","language":"C#","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/gregyjames.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-13T21:42:56.000Z","updated_at":"2024-07-01T02:13:37.000Z","dependencies_parsed_at":"2024-11-10T22:14:02.933Z","dependency_job_id":"9ce611ae-7e1c-4c10-8e48-8d3dd3a1f429","html_url":"https://github.com/gregyjames/tsunami","commit_stats":null,"previous_names":["gregyjames/tsunami"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2Ftsunami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2Ftsunami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2Ftsunami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregyjames%2Ftsunami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregyjames","download_url":"https://codeload.github.com/gregyjames/tsunami/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250912660,"owners_count":21506865,"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":["csharp","dotnet","dotnet-core","dotnetstandard","dotnetstandart20","hacktoberfest","hacktoberfest-accepted","high-performance","high-performance-computing","math","mathematics","simd","simd-intrinsics","simd-parallelism","simd-programming"],"created_at":"2024-11-10T22:13:49.070Z","updated_at":"2025-04-25T23:31:13.951Z","avatar_url":"https://github.com/gregyjames.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.NET](https://github.com/gregyjames/tsunami/actions/workflows/dotnet.yml/badge.svg)](https://github.com/gregyjames/tsunami/actions/workflows/dotnet.yml)\n![GitHub](https://img.shields.io/github/license/gregyjames/tsunami)\n![GitHub issues](https://img.shields.io/github/issues/gregyjames/tsunami)\n![Nuget](https://img.shields.io/nuget/v/Tsunami)\n![Nuget](https://img.shields.io/nuget/dt/Tsunami)\n\n\n| ![logo](./logo-small.png) | _tsunami_ |\n| --- | ----------- |\n\nA High Performance C# wrapper that allows you to get the benifts of SIMD Intrinsics on List\\\u003cT\\\u003e. \n\n### What does this do?\nThis library is a wrapper for System.Runtime.Intrensics and System.Numerics that allows you do get the performance benifits of SIMD instructions without having to worry about things like memory management, resizing inputs or dealing with the Vector\u003cT\u003e type. \n\n### Current supported vector operations:\n- Add\n- Max\n- Min\n- Multiply\n- Subtract\n- AndNot\n- And\n- Or\n- Divide\n- Xor\n- SquareRoot\n\n### Benchmarks\n| Count     | Tsunami      | Normal       | Equal? | % Diff             |\n|-----------|--------------|--------------|--------|--------------------|\n| 10000     | 3.9621 ms    | 0.4234 ms    | True   | 89.31374776002625  |\n| 100000    | 0.2125 ms    | 0.3279 ms    | True   | 35.19365660262276  |\n| 1000000   | 2.1131 ms    | 3.2197 ms    | True   | 34.369661769730094 |\n| 10000000  | 28.6489 ms   | 34.0691 ms   | True   | 15.909431126739474 |\n| 100000000 | 686.2303 ms  | 485.0529 ms  | True   | 29.316309699527988 |\n| 250000000 | 1409.1429 ms | 2354.5231 ms | True   | 40.15166383375045  |\n\n### Code Example\n\n    var x = Enumerable.Range(0, size).ToList();  \n\tvar y = Enumerable.Range(0, size).ToList();  \n\tvar res = Tsunami\u003cint\u003e.DoOperations(x, y, Operations.Add);  \nPlease look at the \"TsunamiTester\" project for more information.\n\n### Supported Instruction Sets\n- Generic\n- AVX2\n- NEON\n- SSE3\n- SSE41\n- SSE42\n\n### License\nMIT License\n\nCopyright (c) 2023 Greg James\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregyjames%2Ftsunami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregyjames%2Ftsunami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregyjames%2Ftsunami/lists"}