File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Tests/CodableDatastoreTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,14 +125,14 @@ final class DiskPersistenceDatastoreTests: XCTestCase {
125125
126126 let start = ProcessInfo . processInfo. systemUptime
127127 for n in 1 ... 5 {
128+ let time = ProcessInfo . processInfo. systemUptime
128129 try await persistence. perform { persistence in
129- let time = ProcessInfo . processInfo. systemUptime
130130 for _ in 0 ..< 5000 {
131131 try await datastore. persist ( TestStruct ( value: valueBank. randomElement ( ) !) )
132132 }
133- let now = ProcessInfo . processInfo. systemUptime
134- print ( " \( n*5000) : \( ( 100 * ( now - time) ) . rounded ( ) / 100 ) s - total: \( ( 10 * ( now - start) ) . rounded ( ) / 10 ) s " )
135133 }
134+ let now = ProcessInfo . processInfo. systemUptime
135+ print ( " \( n*5000) : \( ( 100 * ( now - time) ) . rounded ( ) / 100 ) s - total: \( ( 10 * ( now - start) ) . rounded ( ) / 10 ) s " )
136136 }
137137 }
138138}
You can’t perform that action at this time.
0 commit comments