Skip to content

Instantly share code, notes, and snippets.

@florianbehrens
Created May 9, 2020 08:58
Show Gist options
  • Save florianbehrens/84df8d916e87afd8856d52e37d5c16a6 to your computer and use it in GitHub Desktop.
Save florianbehrens/84df8d916e87afd8856d52e37d5c16a6 to your computer and use it in GitHub Desktop.
Compiler Performance Benchmark
FROM ubuntu:18.04
ENV SOURCE=llvm-10.0.0.src.tar.xz
WORKDIR /tmp
RUN apt-get -y update; apt-get install -y wget tar xz-utils
RUN wget https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/${SOURCE}
RUN tar -xJf ${SOURCE}
RUN apt-get install -y build-essential cmake python3
WORKDIR /tmp/build
RUN cmake ../${SOURCE%.tar.xz}
RUN apt-get install time
CMD time make -j$(nproc) llvm-lto
@florianbehrens
Copy link
Author

First create Docker container:

docker build -t compile_performance -f ./Dockerfile .

Then, run created container:

docker run compile_performance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment