Last active
February 21, 2022 15:34
-
-
Save HaradaKumiko/b2274c505fade9b46ac07df382e6bf4d 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() | |
bigArray.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/154985823-764b6e3a-3460-4ec9-9341-73de7f525968.png)