Created
June 7, 2023 20:08
-
-
Save IslamRustamov/6b9f0eb6754b57551b6565a153663a20 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 sortCPP = arr => { | |
let mean = 0; | |
for (let i = 0; i < 1000; i++) { | |
const startTime = performance.now(); | |
NativeSampleModule.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