Skip to content

Commit 6742754

Browse files
use native Swim package instead of my fork for benchmarking
1 parent 6ebb03b commit 6742754

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Benchmarks/Benchmarks/Swim/Swim.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import Utilities
99
import Swim
10+
import HTML
1011

1112
package struct SwimTests : HTMLGenerator {
1213
package init() {}

Benchmarks/Package.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let package = Package(
1919
.package(url: "https://github.com/RandomHashTags/fork-bb-swift-html", branch: "main"),
2020
.package(url: "https://github.com/JohnSundell/Plot", from: "0.14.0"),
2121
//.package(url: "https://github.com/toucansites/toucan", from: "1.0.0-alpha.1"), // unstable
22-
.package(url: "https://github.com/RandomHashTags/fork-Swim", branch: "main"),
22+
.package(url: "https://github.com/robb/Swim", from: "0.4.0"),
2323
.package(url: "https://github.com/RandomHashTags/fork-Vaux", branch: "master"),
2424
//.package(url: "https://github.com/tayloraswift/swift-dom", from: "1.1.0"), // bad exports
2525
//.package(url: "https://github.com/TokamakUI/Tokamak", from: "0.11.1"), // swift-benchmark problem
@@ -97,7 +97,8 @@ let package = Package(
9797
name: "TestSwim",
9898
dependencies: [
9999
"Utilities",
100-
.product(name: "Swim", package: "fork-Swim")
100+
.product(name: "Swim", package: "Swim"),
101+
.product(name: "HTML", package: "Swim", moduleAliases: ["HTML":"SwimHTML"])
101102
],
102103
path: "Benchmarks/Swim"
103104
),

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Use the `HTMLElementAttribute.event(<type>, "<value>")`.
180180
- [JohnSundell/Plot](https://github.com/JohnSundell/Plot) v0.14.0
181181
- [RandomHashTags/swift-htmlkit](https://github.com/RandomHashTags/swift-htmlkit) v0.6.0 (this library)
182182
- [pointfreeco/swift-html](https://github.com/pointfreeco/swift-html) v0.4.1
183-
- [robb/Swim](https://github.com/robb/Swim) v0.4.0 (patched version [here](https://github.com/RandomHashTags/fork-Swim))
183+
- [robb/Swim](https://github.com/robb/Swim) v0.4.0
184184
- [vapor-community/HTMLKit](https://github.com/vapor-community/HTMLKit) v2.8.1
185185
- [dokun1/Vaux](https://github.com/dokun1/Vaux) v0.2.0 (patched version [here](https://github.com/RandomHashTags/fork-Vaux); custom renderer [here](https://github.com/RandomHashTags/swift-htmlkit/blob/main/Benchmarks/Benchmarks/Vaux/Vaux.swift))
186186

0 commit comments

Comments
 (0)