Skip to content

Instantly share code, notes, and snippets.

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