awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
bestiejs avatar

bestiejs/benchmark.jsArchived

0
View on GitHub↗
5,465 stars·332 forks·JavaScript·17 viewsbenchmarkjs.com↗

Benchmark.js

benchmark.js is a benchmarking and statistical analysis library designed to measure and compare the execution speeds of JavaScript functions. It serves as a performance measurement tool that calculates mean execution time, margin of error, and standard deviation for specific code implementations.

The library provides capabilities for comparing benchmark results to determine relative speed and manages organized test suites that can be run, cloned, or reset in bulk. It includes sampling precision controls to adjust minimum sample sizes and maximum run times to ensure statistical reliability.

The tool covers a broad range of performance evaluation tasks, including algorithm complexity analysis, execution time optimization, and regression testing. It also incorporates an execution lifecycle manager for defining custom setup and teardown functions and utilizes event listeners to monitor the start and completion of benchmarks.

Features

  • JavaScript and WebAssembly Benchmarks - Provides a performance measurement suite specifically for executing and timing JavaScript code.
  • Statistical Analysis Libraries - Implements a toolkit for calculating descriptive statistics and correlations to compare code implementations.
  • Execution Time Measurements - Tracks the elapsed time of function calls to produce mean, margin of error, and standard deviation.
  • Precision Benchmarking Timers - Utilizes high-resolution timing mechanisms to measure the exact elapsed time of code iterations.
  • Function Execution Timing - Measures the elapsed time of JavaScript functions to identify and resolve performance bottlenecks.
  • Monotonic Time Measurement - Uses monotonic clocks to calculate durations and avoid inaccuracies caused by system clock drifts.
  • Performance Measurement - Provides high-resolution timing and resource tracking to calculate mean execution time and margins of error.
  • Test Suites - Enables the grouping of multiple benchmarks into collections that can be run, cloned, or reset in bulk.
  • Asynchronous Looping Primitives - Implements non-blocking iteration mechanisms to handle both synchronous and promise-based function benchmarks.
  • Standard Deviation Calculators - Calculates standard deviation to measure the dispersion and stability of performance timing results.
  • Complexity Analysis - Enables the comparative evaluation of different coding approaches to determine time and space efficiency.
  • Event-Driven Hooks - Provides hooks to execute custom setup and teardown logic at specific stages of the benchmark lifecycle.
  • Benchmark Result Comparison - Analyzes recorded timing data to identify and compare performance differences between multiple execution sets.
  • Test Lifecycle and Execution Control - Provides mechanisms for managing benchmark execution flow via custom setup and teardown hooks.
  • Regression Testing Suites - Provides a suite of performance tests to ensure that code changes do not introduce execution speed regressions.
  • Iteration Scaling - Automatically increases the number of test iterations until results reach a statistically significant sample size.
  • Precision Controls - Allows adjusting minimum sample sizes and maximum run times to reduce measurement uncertainty.
  • Benchmarking - Standard library for performance benchmarking.
  • Benchmarking Tools - Standard library for benchmarking.

Star history

Star history chart for bestiejs/benchmark.jsStar history chart for bestiejs/benchmark.js

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Benchmark.js

These projects share indexed features with Benchmark.js. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • google/benchmarkgoogle avatar

    google/benchmark

    10,240View on GitHub↗

    This project is a performance measurement framework and microbenchmarking library designed for C++ and Python. It provides a toolset for measuring the execution time of small code fragments using high-resolution timers, calculating statistical aggregates, and analyzing asymptotic complexity. The framework distinguishes itself through specialized capabilities for multithreaded performance testing, using synchronized execution to measure parallel throughput. It includes mechanisms to prevent compiler optimizations from removing benchmarked code and supports complex parameterization via Cartesia

    C++benchmark
    View on GitHub↗10,240
  • sebastianbergmann/php-timersebastianbergmann avatar

    sebastianbergmann/php-timer

    7,744View on GitHub↗

    php-timer is a set of utilities for measuring, tracking, and formatting the execution duration and memory consumption of PHP code segments. It functions as an execution timer and performance profiling utility to analyze resource consumption. The project provides capabilities to track the duration between start and stop triggers in seconds, milliseconds, or nanoseconds. It also includes a resource usage tracker that converts raw execution timestamps and memory bytes into human-readable text strings for reporting. The tool covers performance profiling, resource monitoring, and request duration

    PHP
    View on GitHub↗7,744
  • anthropics/original_performance_takehomeanthropics avatar

    anthropics/original_performance_takehome

    3,488View on GitHub↗

    This project is an algorithmic performance benchmarking tool and execution cycle simulator. It functions as a complexity analysis framework that measures code execution speed using simulated clock cycles to evaluate algorithmic efficiency against established performance baselines. The tool provides deterministic measurements of computational work and time complexity by tracking virtual clock cycles rather than real time. It utilizes a threshold-driven test suite to validate whether specific code implementations meet required performance cycle targets. The framework covers execution speed pro

    Python
    View on GitHub↗3,488
  • davebcn87/pi-autoresearchdavebcn87 avatar

    davebcn87/pi-autoresearch

    7,035View on GitHub↗

    pi-autoresearch is an autonomous research extension that automates iterative code-editing and performance-measurement loops driven by large language models. It functions as an experiment lifecycle automator, executing repetitive cycles of changes and benchmarks until a specific goal is reached. The system distinguishes itself by organizing successful experimental trials into independent git branches for review and merging. It includes a real-time research dashboard for monitoring metrics and status, and utilizes median absolute deviation to calculate confidence scores that filter benchmark no

    TypeScript
    View on GitHub↗7,035
Compare all 30 related projects→

Frequently asked questions

What does bestiejs/benchmark.js do?

benchmark.js is a benchmarking and statistical analysis library designed to measure and compare the execution speeds of JavaScript functions. It serves as a performance measurement tool that calculates mean execution time, margin of error, and standard deviation for specific code implementations.

What are the main features of bestiejs/benchmark.js?

The main features of bestiejs/benchmark.js are: JavaScript and WebAssembly Benchmarks, Statistical Analysis Libraries, Execution Time Measurements, Precision Benchmarking Timers, Function Execution Timing, Monotonic Time Measurement, Performance Measurement, Test Suites.

Which projects share features with bestiejs/benchmark.js?

Projects with overlapping indexed features include: google/benchmark — This project is a performance measurement framework and microbenchmarking library designed for C++ and Python. It… sebastianbergmann/php-timer — php-timer is a set of utilities for measuring, tracking, and formatting the execution duration and memory consumption… davebcn87/pi-autoresearch — pi-autoresearch is an autonomous research extension that automates iterative code-editing and performance-measurement… anthropics/original_performance_takehome — This project is an algorithmic performance benchmarking tool and execution cycle simulator. It functions as a… github/scientist — Scientist is a Ruby code parity testing library and production experimentation framework. It allows for the safe… hosseinmoein/dataframe — DataFrame is a C++ tabular data library and manipulation engine designed for managing heterogeneous data in contiguous…