Skip to content

elixir-bench/elixir-bench-runner-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ElixirBench Runner Container

This is a container that fetches project source and runs benchmarking code.

To start it requires following environment variables:

  • ELIXIRBENCH_REPO_SLUG - GitHub repo slug for a repo;
  • ELIXIRBENCH_REPO_BRANCH - branch name on which we are running our benchmarking suite;
  • ELIXIRBENCH_REPO_COMMIT - commit hash for which we are running our benchmarking suite.

Benchmarking results should be written to a path from BENCHMARKS_OUTPUT_PATH environment variable.

Building and running container

# Build the container (Elixir and Erlang versions should be in the tag)
docker build --tag "elixirbench/1.5.2-20.1.2" ./

# Test it on a sample benchmark, not that PostgeSQL and MySQL are required for this sample
docker run --env ELIXIRBENCH_REPO_SLUG=elixir-ecto/ecto \
           --env ELIXIRBENCH_REPO_BRANCH=mm/benches \
           --env ELIXIRBENCH_REPO_COMMIT=d99b70ca17dd41ad7731ec0b0fb3879065952297 \
           --env PG_URL=postgres:[email protected] \
           --env [email protected] \
           -v /tmp/benchmarking_results:/var/bench \
           elixirbench/1.5.2-20.1.2

# Push it to Docker Hub
docker push elixirbench/1.5.2-20.1.2

By default, it will run benchmarks via mix run bench/bench_helper.exs on a project source with a MIX_ENV=bench.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages