Early previewThis guide is in development. Items tagged verify are still being checked against official docs.
nebx Learn
GitHub
Menu
Home/JavaScript/Performance
JS

JavaScript

The language of the web, on the client, the server and the edge.

Paradigm
Multi-paradigm, prototype-based, functional
Typing
Dynamic, weak (TypeScript adds static types)
Memory
Garbage collected
Runs
V8 / SpiderMonkey / JSC engines (JIT)
Concurrency
Single-threaded event loop, workers

Performance

How JavaScript runs, and what that means in practice.

Execution model

JIT-compiled by the engine (V8 in Node.js and Chrome) with inline caching and speculative optimisation.

Memory

Generational garbage collector; hidden classes reward objects with consistent shapes.

Concurrency

Single-threaded event loop excels at concurrent I/O; worker_threads / Web Workers for parallel CPU work.

In practice

Very good for I/O-bound services; CPU-bound work is slower than compiled languages and blocks the loop.

Compare with the other five languages →

Saved in this browser only. Part of From code to production (0/5).