mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-29 05:24:23 +00:00
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
31 lines
962 B
Swift
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")
|
|
]
|
|
)
|
|
]
|
|
)
|