Skip to content

Commit

Permalink
Fix package manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
hassila committed Jun 1, 2023
1 parent 36940bc commit cb4a765
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 41 deletions.
13 changes: 11 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"pins" : [
{
"identity" : "package-benchmark",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ordo-one/package-benchmark",
"state" : {
"revision" : "874ee0c184a4e89be111349b8dab2e61b6773937",
"version" : "1.6.1"
}
},
{
"identity" : "package-datetime",
"kind" : "remoteSourceControl",
Expand Down Expand Up @@ -50,8 +59,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-atomics",
"state" : {
"revision" : "ff3d2212b6b093db7f177d0855adbc4ef9c5f036",
"version" : "1.0.3"
"revision" : "6c89474e62719ddcc1e9614989fff2f68208fe10",
"version" : "1.1.0"
}
},
{
Expand Down
68 changes: 29 additions & 39 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ let package = Package(

dependencies: [
// .package(url: "https://github.com/ordo-one/package-benchmark", branch: "main"),
.package(path: "../package-benchmark"),
// .package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.0.0")),
// .package(path: "../package-benchmark"),
.package(url: "https://github.com/ordo-one/package-benchmark", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/swift-extras/swift-extras-json.git", .upToNextMajor(from: "0.6.0")),
],

Expand All @@ -33,60 +33,72 @@ let package = Package(
name: "Minimal",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
],
path: "Benchmarks/Minimal"
path: "Benchmarks/Minimal",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),

// Sample showing wide range of API usage
.executableTarget(
name: "Samples",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
"PackageBenchmarkSamples",
],
path: "Benchmarks/Samples"
path: "Benchmarks/Samples",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),

// Some miscellaneous tests for edge conditions
.executableTarget(
name: "Miscellaneous",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
],
path: "Benchmarks/Miscellaneous"
path: "Benchmarks/Miscellaneous",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),

// One test for problems with memory measurements
.executableTarget(
name: "MemoryOne",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
],
path: "Benchmarks/MemoryOne"
path: "Benchmarks/MemoryOne",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),

// Another test for problems with memory measurements
.executableTarget(
name: "MemoryTwo",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
],
path: "Benchmarks/MemoryTwo"
path: "Benchmarks/MemoryTwo",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),

// Some test benchmarks on Foundation
.executableTarget(
name: "Foundation-Benchmark",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
],
path: "Benchmarks/Foundation"
path: "Benchmarks/Foundation",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
),

// Benchmarks on external libraries
Expand All @@ -95,37 +107,15 @@ let package = Package(
dependencies: [
.product(name: "ExtrasJSON", package: "swift-extras-json"),
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark"),
],
path: "Benchmarks/External",
resources: [
.process("Resources/example.geojson"),

],
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
]
)
]
)

// Benchmark of TestBenchmarkInit
package.targets += [
.executableTarget(
name: "TestBenchmarkInit",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark")
],
path: "Benchmarks/TestBenchmarkInit"
),
]

// Benchmark of TestBenchmarkInitNew
package.targets += [
.executableTarget(
name: "TestBenchmarkInitNew",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
.product(name: "BenchmarkPlugin", package: "package-benchmark")
],
path: "Benchmarks/TestBenchmarkInitNew"
),
]

0 comments on commit cb4a765

Please sign in to comment.