mirror of
https://github.com/apple/swift-certificates
synced 2026-11-22 04:20:39 +00:00
* Add `package-benchmark` * use local dependencies * split into multiple targets * fix benchmark plugin * refactor file structure * self review * Fix review comment * Apply review feedback * use `scaledIterations` * don’t require the parent folder to be named `swift-certificates` * install jemalloc * use new `metricP90AbsoluteThresholds` export format * update metrics * use automated threshold import * merge main and update allocation counters * adopt `swift-format` for benchmarks * add license headers * use latest threshold file format * delete old integration tests * use released version * revork folder structure and add BlackHole module * crash in debug configuration * swift-format * update baselines * Move to single target * update swift-format script * enable arc for `Verifier` * update to `package-benchmark` `1.11.0` * update to `package-benchmark` `1.11.1` * update benchmark metrics * update metrics captured * include release count * move `.benchmarkBaselines` to nested `.gitignore` * swift-format * Fix `.gitignore` * Add documentation * change wording * remove version number * remove benchmarks folder * add uppercase Benchmarks folder * fix formatting script * update readme with new uppercase folder name * update Benchmarks folder name in docker compose * drop allocation limits
28 lines
901 B
Docker
28 lines
901 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
|
|
|
|
# tools
|
|
RUN mkdir -p $HOME/.tools
|
|
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile
|
|
|
|
# swift-format
|
|
ARG swiftformat_version=508.0.1
|
|
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/apple/swift-format $HOME/.tools/swift-format-source
|
|
RUN cd $HOME/.tools/swift-format-source && swift build -c release
|
|
RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format
|
|
|
|
# install jemalloc for running allocation benchmarks
|
|
RUN apt-get update
|
|
RUN apt-get install -y libjemalloc-dev
|