GithubHelp home page GithubHelp logo

ammarfaizi2 / memcpy_benchmark Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 56 KB

Benchmark to show which is the fastest memcpy.

License: The Unlicense

Makefile 2.48% PHP 16.32% Assembly 57.25% C 23.95%
x86-64 memcpy avx sse avx-512 performance hpc

memcpy_benchmark's Introduction

Memcpy Benchmark

Which is the best memcpy?

How to use?

# 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.

memcpy_benchmark's People

Contributors

ammarfaizi2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.