$ show v8/web-tooling-benchmark
The Web Tooling Benchmark is a performance measurement suite designed to evaluate JavaScript-related workloads in common web developer tools. It executes benchmarks for tools like Babel, TypeScript, UglifyJS, and others, measuring their throughput in runs per second. The architecture consists of a Node.js CLI interface and a browser-compatible bundle, both driven by a benchmark suite that runs each tool's core functionality on standardized third-party code samples. Key entry points are src/cli.js (for Node.js) and src/bootstrap.js (for browser). The suite reads input files from the third_party directory, processes them via each tool's API, and aggregates results using geometric mean. External dependencies include the benchmarking framework, various JavaScript tools (acorn, babel, typescript, etc.), and utilities for file system virtualization and output formatting.
The LLM identified 1 files worth highlighting for reuse:
This module parses command-line flags (--only) and environment variables (ONLY) to determine which benchmarks to run. It is a self-contained utility with no internal dependencies, making it easily extractable for reuse in any Node.js CLI tool requiring flag-based operation filtering. Demonstrates clean separation of concerns and minimal coupling.