mirror of
https://github.com/apple/swift-certificates
synced 2026-11-28 04:54:21 +00:00
### Motivation The benchmark package got renamed and changed the allocator. Benchmarks thresholds passed with [version 1.34](https://github.com/apple/swift-certificates/actions/runs/28015378822/job/82918309837#step:6:198) and then failed with [version 1.35](https://github.com/apple/swift-certificates/actions/runs/28055879634/job/83057967622#step:6:149). ### Modifications * Follow benchmark package name change. * Update failing thresholds. ### Results 6.3 benchmark CI pipeline passes.
48 lines
1.6 KiB
Swift
48 lines
1.6 KiB
Swift
// swift-tools-version:6.1
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftCertificates open source project
|
|
//
|
|
// Copyright (c) 2023 Apple Inc. and the SwiftCertificates project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftCertificates project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "benchmarks",
|
|
platforms: [
|
|
.macOS(.v13)
|
|
],
|
|
dependencies: [
|
|
.package(path: "../"),
|
|
.package(url: "https://github.com/ordo-one/benchmark.git", from: "1.11.1"),
|
|
.package(url: "https://github.com/apple/swift-crypto.git", "3.12.3"..<"5.0.0"),
|
|
.package(url: "https://github.com/apple/swift-asn1.git", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "CertificatesBenchmark",
|
|
dependencies: [
|
|
.product(name: "Benchmark", package: "benchmark"),
|
|
.product(name: "X509", package: "swift-certificates"),
|
|
.product(name: "SwiftASN1", package: "swift-asn1"),
|
|
.product(name: "Crypto", package: "swift-crypto"),
|
|
],
|
|
path: "Benchmarks/CertificatesBenchmark",
|
|
resources: [
|
|
.copy("ca-certificates/")
|
|
],
|
|
plugins: [
|
|
.plugin(name: "BenchmarkPlugin", package: "benchmark")
|
|
]
|
|
)
|
|
]
|
|
)
|