|
| 1 | +// swift-tools-version: 5.7 |
| 2 | +//===----------------------------------------------------------------------===// |
| 3 | +// |
| 4 | +// This source file is part of the swift-kafka-client open source project |
| 5 | +// |
| 6 | +// Copyright (c) 2023 Apple Inc. and the swift-kafka-client project authors |
| 7 | +// Licensed under Apache License v2.0 |
| 8 | +// |
| 9 | +// See LICENSE.txt for license information |
| 10 | +// See CONTRIBUTORS.txt for the list of swift-kafka-client project authors |
| 11 | +// |
| 12 | +// SPDX-License-Identifier: Apache-2.0 |
| 13 | +// |
| 14 | +//===----------------------------------------------------------------------===// |
| 15 | + |
| 16 | +import PackageDescription |
| 17 | + |
| 18 | +let package = Package( |
| 19 | + name: "benchmarks", |
| 20 | + platforms: [ |
| 21 | + .macOS(.v13), |
| 22 | + ], |
| 23 | + dependencies: [ |
| 24 | + .package(path: "../"), |
| 25 | + .package(url: "https://github.com/ordo-one/package-benchmark.git", from: "1.11.1"), |
| 26 | + ], |
| 27 | + targets: [ |
| 28 | + .executableTarget( |
| 29 | + name: "SwiftKafkaConsumerBenchmarks", |
| 30 | + dependencies: [ |
| 31 | + .product(name: "Benchmark", package: "package-benchmark"), |
| 32 | + .product(name: "Kafka", package: "swift-kafka-client"), |
| 33 | + ], |
| 34 | + path: "Benchmarks/SwiftKafkaConsumerBenchmarks", |
| 35 | + plugins: [ |
| 36 | + .plugin(name: "BenchmarkPlugin", package: "package-benchmark"), |
| 37 | + ] |
| 38 | + ), |
| 39 | + .executableTarget( |
| 40 | + name: "SwiftKafkaProducerBenchmarks", |
| 41 | + dependencies: [ |
| 42 | + .product(name: "Benchmark", package: "package-benchmark"), |
| 43 | + .product(name: "Kafka", package: "swift-kafka-client"), |
| 44 | + ], |
| 45 | + path: "Benchmarks/SwiftKafkaProducerBenchmarks", |
| 46 | + plugins: [ |
| 47 | + .plugin(name: "BenchmarkPlugin", package: "package-benchmark"), |
| 48 | + ] |
| 49 | + ), |
| 50 | + ] |
| 51 | +) |
0 commit comments