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
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
# this file is not designed to be run directly
|
|
# instead, use the docker-compose.<os>.<swift> files
|
|
# eg docker-compose -f docker/docker-compose.yaml -f docker/docker-compose.2204.57.yaml run test
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-certificates:default
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
common: &common
|
|
image: swift-certificates:default
|
|
depends_on: [runtime-setup]
|
|
volumes:
|
|
- ~/.ssh:/root/.ssh
|
|
- ..:/swift-certificates:z
|
|
working_dir: /swift-certificates
|
|
|
|
soundness:
|
|
<<: *common
|
|
command: /bin/bash -xcl "swift -version && uname -a && ./scripts/soundness.sh"
|
|
|
|
test:
|
|
<<: *common
|
|
command: /bin/bash -xcl "swift $${SWIFT_TEST_VERB-test} $${WARN_AS_ERROR_ARG-} $${SANITIZER_ARG-} $${IMPORT_CHECK_ARG-} && cd Benchmarks && swift package benchmark baseline check --check-absolute-path Thresholds/$${SWIFT_VERSION-}/"
|
|
|
|
update-benchmark-baseline:
|
|
<<: *common
|
|
command: /bin/bash -xcl "cd Benchmarks && swift package --scratch-path .build/$${SWIFT_VERSION-}/ --allow-writing-to-package-directory benchmark --format metricP90AbsoluteThresholds --path Thresholds/$${SWIFT_VERSION-}/"
|
|
# util
|
|
|
|
shell:
|
|
<<: *common
|
|
entrypoint: /bin/bash
|