Skip to content

Instantly share code, notes, and snippets.

@tmkasun
Created May 5, 2021 06:19
Show Gist options
  • Save tmkasun/e19d9c4de8f856a0ef42dceb7d5a9930 to your computer and use it in GitHub Desktop.
Save tmkasun/e19d9c4de8f856a0ef42dceb7d5a9930 to your computer and use it in GitHub Desktop.

Revisions

  1. tmkasun created this gist May 5, 2021.
    9 changes: 9 additions & 0 deletions demo.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    - Open the [Link](https://4o2jx.csb.app/)
    - Open the Developer console
    - And type
    ```js
    setInterval(() => {var a = Date.now(); while(Date.now() - a < 1000);},3000)
    ```
    - Open the performace monitor in the browser
    - And you will see the below CPU usage pattern
    ![image](https://user-images.githubusercontent.com/3313885/117103226-8cdea300-ad97-11eb-94b6-9a7581f940e0.png)