Skip to content

Commit

Permalink
Fix benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 13, 2024
1 parent 530c0a9 commit 0d7b7bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Benchmarks/Benchmarks/BaseN/BaseN.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ let benchmarks = {
benchmark.startMeasurement()

for _ in benchmark.scaledIterations {
blackHole(Base32.encodeString(bytes: bytes))
blackHole(Base32.encodeToString(bytes: bytes))
}
}

Benchmark("Base32.decode") { benchmark in
let bytes = Array(UInt8(0) ... UInt8(255))
let base32 = Base32.encodeString(bytes: bytes)
let base32 = Base32.encodeToString(bytes: bytes)

benchmark.startMeasurement()

Expand All @@ -39,13 +39,13 @@ let benchmarks = {
benchmark.startMeasurement()

for _ in benchmark.scaledIterations {
blackHole(Base64.encodeString(bytes: bytes))
blackHole(Base64.encodeToString(bytes: bytes))
}
}

Benchmark("Base64.decode") { benchmark in
let bytes = Array(UInt8(0) ... UInt8(255))
let base64 = Base64.encodeString(bytes: bytes)
let base64 = Base64.encodeToString(bytes: bytes)

benchmark.startMeasurement()

Expand Down

0 comments on commit 0d7b7bd

Please sign in to comment.