Skip to content

Instantly share code, notes, and snippets.

@IslamRustamov
Created June 7, 2023 20:08
Show Gist options
  • Save IslamRustamov/6b9f0eb6754b57551b6565a153663a20 to your computer and use it in GitHub Desktop.
Save IslamRustamov/6b9f0eb6754b57551b6565a153663a20 to your computer and use it in GitHub Desktop.
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