mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
54 lines
1.6 KiB
Swift
54 lines
1.6 KiB
Swift
// swift-tools-version:5.7
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2021 - 2024 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-collections.Benchmarks",
|
|
products: [
|
|
.executable(name: "benchmark", targets: ["benchmark"]),
|
|
.executable(name: "memory-benchmark", targets: ["memory-benchmark"]),
|
|
],
|
|
dependencies: [
|
|
.package(name: "swift-collections", path: ".."),
|
|
.package(url: "https://github.com/apple/swift-collections-benchmark", from: "0.0.3"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Benchmarks",
|
|
dependencies: [
|
|
.product(name: "Collections", package: "swift-collections"),
|
|
.product(name: "CollectionsBenchmark", package: "swift-collections-benchmark"),
|
|
"CppBenchmarks",
|
|
]
|
|
),
|
|
.target(
|
|
name: "CppBenchmarks"
|
|
),
|
|
.executableTarget(
|
|
name: "benchmark",
|
|
dependencies: [
|
|
"Benchmarks",
|
|
],
|
|
path: "Sources/benchmark-tool"
|
|
),
|
|
.executableTarget(
|
|
name: "memory-benchmark",
|
|
dependencies: [
|
|
.product(name: "Collections", package: "swift-collections"),
|
|
.product(name: "CollectionsBenchmark", package: "swift-collections-benchmark"),
|
|
]
|
|
),
|
|
],
|
|
cxxLanguageStandard: .cxx17
|
|
)
|