https://github.com/ammarfaizi2/memcpy_benchmark
Benchmark to show which is the fastest memcpy.
https://github.com/ammarfaizi2/memcpy_benchmark
avx avx-512 hpc memcpy performance sse x86-64
Last synced: about 1 year ago
JSON representation
Benchmark to show which is the fastest memcpy.
- Host: GitHub
- URL: https://github.com/ammarfaizi2/memcpy_benchmark
- Owner: ammarfaizi2
- License: unlicense
- Created: 2020-09-19T21:56:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T06:40:44.000Z (almost 6 years ago)
- Last Synced: 2025-04-14T03:56:21.403Z (over 1 year ago)
- Topics: avx, avx-512, hpc, memcpy, performance, sse, x86-64
- Language: Assembly
- Homepage:
- Size: 54.7 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Memcpy Benchmark
Which is the best `memcpy`?
# How to use?
```sh
# Install make, nasm and gcc.
sudo apt install make nasm gcc -y;
# Clone the repository.
git clone https://github.com/ammarfaizi2/memcpy_benchmark;
cd memcpy_benchmark;
make;
# Allow CPU to use max freq.
echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor;
# Run the benchmark.
sudo nice -n -20 ./memcpy_bench 1 # Benchmark built in memcpy from libc
sudo nice -n -20 ./memcpy_bench 2 # Benchmark memcpy_avx256
sudo nice -n -20 ./memcpy_bench 3 # Benchmark memcpy_avx512
sudo nice -n -20 ./memcpy_bench 4 # Benchmark memcpy_movsb
```
# License
This is free and unencumbered software released into the public domain, thanks.