mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
# Motivation We want to migrate our allocation and later on also our performance tests to use the `package-benchmark` plugin. This plugin makes writing benchmarks way easier than our current setup. Furthermore, debugging benchmarks is also possible from within Xcode now. # Modification This PR adds the setup for the benchmarking infrastructure and connects it with out # Result Allocations tests are more accessible and easier to iterate.
28 lines
835 B
Docker
28 lines
835 B
Docker
ARG swift_version=5.7
|
|
ARG ubuntu_version=jammy
|
|
ARG base_image=swift:$swift_version-$ubuntu_version
|
|
FROM $base_image
|
|
# needed to do again after FROM due to docker limitation
|
|
ARG swift_version
|
|
ARG ubuntu_version
|
|
|
|
# set as UTF-8
|
|
RUN apt-get update && apt-get install -y locales locales-all
|
|
ENV LC_ALL en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
ENV LANGUAGE en_US.UTF-8
|
|
|
|
# dependencies
|
|
RUN apt-get update && apt-get install -y wget
|
|
RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools curl jq # used by integration tests
|
|
|
|
# ruby
|
|
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
|
|
|
|
# install jemalloc for running allocation benchmarks
|
|
RUN apt-get update & apt-get install -y libjemalloc-dev
|
|
|
|
# tools
|
|
RUN mkdir -p $HOME/.tools
|
|
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile
|