Crates.io | polynomial-simd |
lib.rs | polynomial-simd |
version | 0.1.0 |
source | src |
created_at | 2023-05-07 17:52:00.212104 |
updated_at | 2023-05-07 17:52:00.212104 |
description | Quickly evaluate polynomials using SIMD |
homepage | |
repository | https://github.com/TiagoCavalcante/polynomial-simd |
max_upload_size | |
id | 859302 |
size | 990,523 |
Performance comparison of polynomial evaluation with/without SIMD
SIMD is ~2x faster than a simple loop:
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)
Just execute the command bellow and you are ready to go:
wget -qO- https://raw.githubusercontent.com/TiagoCavalcante/polynomial/main/scripts/install.sh | bash
Building it yourself is very easy:
git clone https://github.com/TiagoCavalcante/polynomial
cargo run --release