Performance Analyzer

JavaScript code performance analysis, measuring execution time and memory usage.

Code Input

Usage Guide

Features

Online JavaScript code performance analyzer that runs user code multiple times to calculate average time, min/max time, median, standard deviation and operations per second (OPS), with a bar chart visualizing time distribution.

Steps

Enter JavaScript code to analyze in the text box (use return to output results); set "Iterations" (default 1000, max 100000); click "Run Analysis" to start testing; view summary metrics in the "Analysis Result" card and full statistics in the "Detailed Data" card.

Metrics Explanation

Average time reflects overall performance; median excludes extreme values for robustness; standard deviation measures time variance, smaller is more stable; higher ops per second means better performance. In the distribution chart, green = fastest, red = slowest, indigo = normal runs.

Notes

Code is executed via new Function, do not enter sensitive or destructive code; 10 warmup runs are performed before testing to reduce JIT compilation impact; background browser activity or hardware performance fluctuations affect results, so close other heavy programs and run multiple tests for averaging.