Created
February 21, 2022 14:30
-
-
Save HaradaKumiko/d66a25b3f6839938091971abcfca0559 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 smallArray = [5, 3, 2, 35, 2]; | |
const bigArray = [5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2, 5, 3, 2, 35, 2]; | |
const start = performance.now() | |
smallArray.push(10) | |
const end = performance.now() | |
console.log(`Time : ${end-start}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kurang dari 1 milisecond
![image](https://user-images.githubusercontent.com/42530587/154976774-f650f48d-44dc-4c7b-9f87-edb13d07fc3a.png)