Created
June 7, 2023 20:09
-
-
Save IslamRustamov/31ba4e730ef844f3cdc3593f9b57ed3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sortObjectiveC = async arr => { | |
let mean = 0; | |
for (let i = 0; i < 1000; i++) { | |
const startTime = performance.now(); | |
await RTNSorter?.sort(arr); | |
const endTime = performance.now(); | |
mean += endTime - startTime; | |
} | |
return mean / 1000; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment