Some fun in assembly Linux x64
yaourt -S yasm bash-bats
# or
sudo add-apt-repository ppa:duggan/bats
sudo apt-get update
sudo apt-get install make yasm bats
# The program is a subfolder in src/
PROGRAM=yes make
./bin/yes | pv -r > /dev/null
[5,85GiB/s]
# Same performance as GNU yes on my machine ;)
yes | pv -r > /dev/null
[5,81GiB/s]
make test
# to run a single test
TEST=yes make test
docker build -t problems-assembly .
docker run -it --rm -v $(pwd):/var/data -w /var/data problems-assembly bash