https://github.com/manojadams/js-objects-memory
Memory allocated to javascript objects
https://github.com/manojadams/js-objects-memory
javascript javascript-performance memory
Last synced: 10 months ago
JSON representation
Memory allocated to javascript objects
- Host: GitHub
- URL: https://github.com/manojadams/js-objects-memory
- Owner: manojadams
- Created: 2023-07-31T15:13:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T00:21:30.000Z (over 2 years ago)
- Last Synced: 2025-01-02T22:34:45.357Z (12 months ago)
- Topics: javascript, javascript-performance, memory
- Language: JavaScript
- Homepage:
- Size: 1.12 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Object memory test
This contain tests for memory comparison between JavaScript `class` and Javascript `function`.
## Steps
- Create 1 million object instances from `class` and `function`.
- Take a memory snapshot (Please open all three files in separate tabs/window).
- Compare memory snapshots.
## Types of test/files:
- Objects created with single class

- Objects created with function

- Objects created with multi class

## How to run
- Install serve globally
```
npm install serve --global
```
- cd into the current directory of the project.
- Run command `serve`
## Give a ⭐️ if you liked this repo!