manojadams / js-objects-memory

Memory allocated to javascript objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 82.9%Language:HTML 17.1%