Skip to content

Commit 586c5ef

Browse files
committed
Add Benchmarks
1 parent ecb5700 commit 586c5ef

13 files changed

Lines changed: 985 additions & 963 deletions

File tree

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ DerivedData/
66
.swiftpm/configuration/registries.json
77
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
88
.netrc
9-
Benchmarks/.build
9+
Benchmarks/.build
10+
Benchmarks/Packages
11+
Benchmarks/xcuserdata/
12+
Benchmarks/DerivedData/
13+
Benchmarks/.swiftpm/configuration/registries.json
14+
Benchmarks/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

.scripts/build-static-docc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ swift package --allow-writing-to-directory docs \
44
generate-documentation --target JBird \
55
--disable-indexing \
66
--transform-for-static-hosting \
7-
--hosting-base-path JBird/docs \
7+
--hosting-base-path docs \
88
--output-path docs

Benchmarks/.benchmarkBaselines/JBirdBenchmark/foundation/results.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

Benchmarks/.benchmarkBaselines/JBirdBenchmark/freddy/results.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

Benchmarks/.benchmarkBaselines/JBirdBenchmark/jbird/results.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

Benchmarks/.benchmarkBaselines/JBirdBenchmark/swiftyjson/results.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

Benchmarks/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

Benchmarks/JBirdBenchmark/JBirdBenchmark.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626
import Benchmark
2727
import Foundation
28+
import Freddy
2829
import JBird
30+
import SwiftyJSON
2931

3032
func load(benchmark name: String) -> (String, Data) {
3133
let resource = "benchmark-\(name)"

Benchmarks/Package.resolved

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Benchmarks/Package.swift

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,24 @@ let package = Package(
1616
.package(
1717
name: "JBird",
1818
path: "../"
19+
),
20+
.package(
21+
url: "https://github.com/modswift/Freddy.git",
22+
exact: "3.0.58"
23+
),
24+
.package(
25+
url: "https://github.com/SwiftyJSON/SwiftyJSON.git",
26+
exact: "5.0.2"
1927
)
20-
// ),
21-
// .package(
22-
// url: "https://github.com/modswift/Freddy.git",
23-
// exact: "3.0.58"
24-
// ),
25-
// .package(
26-
// url: "https://github.com/SwiftyJSON/SwiftyJSON.git",
27-
// exact: "5.0.2"
28-
// )
2928
],
3029
targets: [
3130
.executableTarget(
3231
name: "JBirdBenchmark",
3332
dependencies: [
3433
.product(name: "Benchmark", package: "package-benchmark"),
35-
.product(name: "JBird", package: "JBird")
34+
.product(name: "JBird", package: "JBird"),
35+
"Freddy",
36+
"SwiftyJSON"
3637
],
3738
path: "JBirdBenchmark",
3839
resources: [

0 commit comments

Comments
 (0)