Skip to content

Commit

Permalink
consistency cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed Apr 15, 2024
1 parent d70e330 commit 6ce5a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.9
5.8
4 changes: 2 additions & 2 deletions Sources/scale-benchmark/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ import Benchmark
public let addStringBenchmarks = BenchmarkSuite(name: "add string", settings: Iterations(10000)) {
suite in
suite.benchmark("no capacity") {
var x1: String = ""
var x1 = ""
for _ in 1 ... 1000 {
x1 += "hi"
}
}

suite.benchmark("reserved capacity", settings: Iterations(10001)) {
var x2: String = ""
var x2 = ""
x2.reserveCapacity(2000)
for _ in 1 ... 1000 {
x2 += "hi"
Expand Down

0 comments on commit 6ce5a96

Please sign in to comment.