Skip to content

manojadams/js-objects-memory

Repository files navigation

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 class-objects

  • Objects created with function function-objects

  • Objects created with multi class multi-class-objects

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!

About

Memory allocated to javascript objects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published