We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e5b7a commit e699adaCopy full SHA for e699ada
Tests/CryptoSwiftTests/ExtensionsTest.swift
@@ -82,6 +82,19 @@ final class ExtensionsTest: XCTestCase {
82
let hex = array.toHexString()
83
XCTAssertEqual(str, hex)
84
}
85
+
86
+ func testToHexStringPerformance() {
87
+ let len = 100000
88
+ let a = [UInt8](unsafeUninitializedCapacity: len) { buf, count in
89
+ for i in 0..<len {
90
+ buf[i] = UInt8.random(in: 0...UInt8.max)
91
+ }
92
+ count = len
93
94
+ self.measure {
95
+ _ = a.toHexString()
96
97
98
99
100
extension ExtensionsTest {
0 commit comments