Skip to content

Commit 728431c

Browse files
updated benchmark pngs to reflect latest changes (and updated Elementary to 0.4.0)
1 parent 0c46fb2 commit 728431c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Benchmarks/Benchmarks/Benchmarks/Benchmarks.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ let benchmarks = {
3232
"Vaux (custom renderer)" : VauxTests()
3333
]
3434

35-
/*for (key, value) in libraries {
35+
for (key, value) in libraries {
3636
Benchmark(key) {
3737
for _ in $0.scaledIterations {
3838
blackHole(value.staticHTML())
3939
}
4040
}
41-
}*/
41+
}
4242

43-
let context:HTMLContext = HTMLContext()
43+
/*let context:HTMLContext = HTMLContext()
4444
for (key, value) in libraries {
4545
Benchmark(key) {
4646
for _ in $0.scaledIterations {
4747
blackHole(value.dynamicHTML(context))
4848
}
4949
}
50-
}
50+
}*/
5151
}

Benchmarks/Benchmarks/Utilities/Utilities.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ package struct HTMLContext {
7272
7373
Mauris eros quam, dictum id elementum et, pharetra in metus. Quisque fermentum congue risus, accumsan consectetur neque aliquam quis. Vestibulum ipsum massa, euismod faucibus est in, condimentum venenatis risus. Quisque congue vehicula tellus, et dignissim augue accumsan ac. Pellentesque tristique ornare ligula, vitae iaculis dui varius vel. Ut sed sem sed purus facilisis porta quis eu tortor. Donec in vehicula tortor. Sed eget aliquet enim. Mauris tincidunt placerat risus, ut gravida lacus vehicula eget. Curabitur ultrices sapien tortor, eu gravida velit efficitur sed. Suspendisse eu volutpat est, ut bibendum velit. Maecenas mollis sit amet sapien laoreet pulvinar. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Morbi lorem ante, volutpat et accumsan a, fermentum vel metus.
7474
"""
75-
var string:String = ""
76-
for _ in 0..<10 {
75+
var string:String = lorem_ipsum
76+
/*for _ in 1..<10 {
7777
string += lorem_ipsum
78-
}
78+
}*/
7979
self.string = string
8080

8181
integer = 293785

Benchmarks/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
.package(url: "https://github.com/swiftlang/swift-syntax", from: "600.0.0"),
1515
.package(name: "swift-htmlkit", path: "../"),
1616
//.package(url: "https://github.com/RandomHashTags/swift-htmlkit", from: "0.5.0"),
17-
.package(url: "https://github.com/sliemeobn/elementary", from: "0.3.4"),
17+
.package(url: "https://github.com/sliemeobn/elementary", from: "0.4.0"),
1818
.package(url: "https://github.com/vapor-community/HTMLKit", from: "2.8.1"),
1919
.package(url: "https://github.com/pointfreeco/swift-html", from: "0.4.1"),
2020
.package(url: "https://github.com/RandomHashTags/fork-bb-swift-html", branch: "main"),

Benchmarks/img/throughput_dynamic.png

7.79 KB
Loading

Benchmarks/img/throughput_static.png

4.56 KB
Loading

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Use the `HTMLElementAttribute.event(<type>, "<value>")`.
176176
## Benchmarks
177177
- Libraries tested
178178
- [BinaryBuilds/swift-html](https://github.com/BinaryBirds/swift-html) v1.7.0 (patched version [here](https://github.com/RandomHashTags/fork-bb-swift-html))
179-
- [sliemeobn/elementary](https://github.com/sliemeobn/elementary) v0.3.4
179+
- [sliemeobn/elementary](https://github.com/sliemeobn/elementary) v0.4.0
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

0 commit comments

Comments
 (0)