Files
swift-nio-ssl/Benchmarks/Package.swift
T
George Barnett f76bfe9041 Remove per-benchmark wiggle room (#546)
Motivation:

The benchmarks have a 2000 alloc wiggle room defined at the per-test
level. It's not obvious why this is there as the numbers seem stable.
Their presence allows for improvements/regressions to go unnoticed which
isn't good.

Modifications:

- Remove the wiggle room
- Rename the benchmark target from NIOSSHBenchmarks to NIOSSLBenchmarks

Result:

Easier to catch regressions/improvements
2025-07-04 13:21:19 +01:00

31 lines
962 B
Swift

// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "benchmarks",
platforms: [
.macOS("14")
],
dependencies: [
.package(path: "../"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.54.0"),
.package(url: "https://github.com/ordo-one/package-benchmark.git", from: "1.22.0"),
],
targets: [
.executableTarget(
name: "NIOSSLBenchmarks",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOEmbedded", package: "swift-nio"),
],
path: "Benchmarks/NIOSSLBenchmarks",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
)
]
)