/docker-stream

STREAM memory benchmark in Docker

Primary LanguageC

STREAM Memory Benchmark in Docker

STREAM is a relevant Benchmark to measure the memory performance. In this repository, we describe an approach to run STREAM in a Docker container, as well as directly without any containers. We use the Docker image soerenmetje/stream that was build from the sources included in this repository.

Unfortunately, STREAM is kinda old - it does not even have a GitHub repository. Therefore, the latest source code of STREAM is included here as well. See STREAM FTP server for the original sources.

Getting Started

Run in Docker:

docker run soerenmetje/stream

Run without Container:

/bin/sh stream.sh

There are prerequisites for running without a container. Following packages need to be installed:

  • gcc

Parameters

You can set following parameters by using environment variables:

  • ARRAYSIZE
  • NTIMES
  • THREADS

Examples:

docker run -e ARRAYSIZE=100000000 soerenmetje/stream
export ARRAYSIZE=100000000 && /bin/sh stream.sh

License

For STREAM source code, the original license LICENSE.txt applies that was provided by the original STREAM authors.

Sources