Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 996 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 996 Bytes

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!