forked from apple/swift-collections
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop depending on swift-collections-benchmark (apple#86)
Instead, move the benchmark suite into its own private nested package, under `Benchmarks/`. The recommended way to build & run benchmarks is via the `Utils/run-benchmarks.sh` script, which continues to work as before with this change. # Conflicts: # .swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme # Package.swift
- Loading branch information
Showing
7 changed files
with
86 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
/*.xcodeproj | ||
xcuserdata/ | ||
.*.sw? | ||
/Benchmarks/.swiftpm | ||
/Benchmarks/.build |
101 changes: 0 additions & 101 deletions
101
.swiftpm/xcode/xcshareddata/xcschemes/swift-collections-benchmark.xcscheme
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"object": { | ||
"pins": [ | ||
{ | ||
"package": "swift-argument-parser", | ||
"repositoryURL": "https://github.com/apple/swift-argument-parser", | ||
"state": { | ||
"branch": null, | ||
"revision": "83b23d940471b313427da226196661856f6ba3e0", | ||
"version": "0.4.4" | ||
} | ||
}, | ||
{ | ||
"package": "swift-collections-benchmark", | ||
"repositoryURL": "https://github.com/apple/swift-collections-benchmark", | ||
"state": { | ||
"branch": null, | ||
"revision": "665cbb154a55f45bcedd2ab4faf17b1b7ac06de3", | ||
"version": "0.0.2" | ||
} | ||
}, | ||
{ | ||
"package": "swift-system", | ||
"repositoryURL": "https://github.com/apple/swift-system", | ||
"state": { | ||
"branch": null, | ||
"revision": "2bc160bfe34d843ae5ff47168080add24dfd7eac", | ||
"version": "0.0.2" | ||
} | ||
} | ||
] | ||
}, | ||
"version": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// swift-tools-version:5.3 | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift Collections open source project | ||
// | ||
// Copyright (c) 2021 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", | ||
dependencies: [ | ||
.package(name: "swift-collections", path: ".."), | ||
.package(url: "https://github.com/apple/swift-collections-benchmark", from: "0.0.1"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "Benchmarks", | ||
dependencies: [ | ||
.product(name: "Collections", package: "swift-collections"), | ||
.product(name: "CollectionsBenchmark", package: "swift-collections-benchmark"), | ||
"CppBenchmarks", | ||
], | ||
path: "Benchmarks", | ||
resources: [ | ||
.copy("Library.json"), | ||
] | ||
), | ||
.target( | ||
name: "CppBenchmarks", | ||
path: "CppBenchmarks" | ||
), | ||
.target( | ||
name: "benchmark", | ||
dependencies: [ | ||
"Benchmarks", | ||
], | ||
path: "benchmark-tool" | ||
), | ||
], | ||
cxxLanguageStandard: .cxx1z | ||
) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters