diff --git a/RxTests/PerformanceTests/main.swift b/RxTests/PerformanceTests/main.swift index f46c887e..53ce2b89 100644 --- a/RxTests/PerformanceTests/main.swift +++ b/RxTests/PerformanceTests/main.swift @@ -32,7 +32,7 @@ func measureTime(@noescape work: () -> ()) -> UInt64 { } let timeInNano = (mach_absolute_time() - start) * UInt64(timebaseInfo.numer) / UInt64(timebaseInfo.denom) - return approxValuePerIteration(timeInNano) / 1000 + return approxValuePerIteration(timeInNano) / UInt64(NumberOfIterations) } func measureMemoryUsage(@noescape work: () -> ()) -> (bytesAllocated: UInt64, allocations: UInt64) {