https://github.com/tiagocavalcante/polynomial-simd
Performance comparison of polynomial evaluation with/without SIMD
https://github.com/tiagocavalcante/polynomial-simd
polynomials simd
Last synced: about 1 year ago
JSON representation
Performance comparison of polynomial evaluation with/without SIMD
- Host: GitHub
- URL: https://github.com/tiagocavalcante/polynomial-simd
- Owner: TiagoCavalcante
- License: mit
- Created: 2023-05-07T17:51:38.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T10:22:35.000Z (about 3 years ago)
- Last Synced: 2024-04-22T16:46:50.637Z (about 2 years ago)
- Topics: polynomials, simd
- Language: Rust
- Homepage: https://crates.io/crates/polynomial-simd
- Size: 941 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# polynomial-simd
Performance comparison of polynomial evaluation with/without SIMD
## How faster is it?
SIMD is ~2x faster than a simple loop:
```sh
echo "1 -1 2 -2 3 -3 4 -4 5 -5 6 -6 7 -7 8 -8 9 -9 10 -10
2" | cargo run --release
at: -3378745 (135 ns)
at_simd: -3378745 (65 ns)
```
## How to install?
Just execute the command bellow and you are ready to go:
```sh
wget -qO- https://raw.githubusercontent.com/TiagoCavalcante/polynomial-simd/main/scripts/install.sh | bash
```
## Build yourself
Building it yourself is very easy:
```sh
git clone https://github.com/TiagoCavalcante/polynomial-simd
cargo run --release
```