raw
current commit
261004.7 · deps: update V8 to 15.2.124.38

title: ‘Running benchmarks locally’ description: ‘This document explains how to run benchmark suites in d8.’

V8 performance is typically tracked using industry-standard benchmark suites that reflect real-world usage.

For modern V8 performance tracking, we recommend using:

CPU Configuration

Before running benchmarks, ensure your CPU is configured for consistent results by setting the frequency scaling governor to performance.

sudo tools/cpu.sh fast

Internal Microbenchmarks

V8 maintains a suite of microbenchmarks in test/js-perf-test for tracking the performance of specific language features. These are run using tools/run_perf.py:

tools/run_perf.py --arch x64 --binary-override-path out/x64.release/d8 test/js-perf-test/JSTests.json

For more details, see the testing guide.

Useful d8 Flags for Benchmarking

Compiler Control

Profiling

Memory & Garbage Collection