diff --git a/benchmarks/README.md b/benchmarks/README.md index 2b9a5b4d59..66e044a04b 100644 --- a/benchmarks/README.md +++ b/benchmarks/README.md @@ -1,10 +1,21 @@ -| Method | `text-interop` | `list-render` | `conditional-render` | -| ----------- | ------------------------ | ---------------------- | ------------------------- | -| million | 1,275,852 ops/sec ±6.33% | 12,262 ops/sec ±8.60% | 1,013,634 ops/sec ±11.69% | -| virtual-dom | 341,239 ops/sec ±5.09% | 8,466 ops/sec ±4.18% | 356,429 ops/sec ±6.03% | -| vanilla | 24,974 ops/sec ±9.21% | 3,417 ops/sec ±8.91% | 19,306 ops/sec ±11.23% | -| baseline | 1,264,249 ops/sec ±7.34% | 13,216 ops/sec ±11.83% | 1,027,381 ops/sec ±8.00% | - -_Last taken 6/13/2021_ +# Benchmarks + +The intention of these benchmarks are not to convince you that Million is faster that all libraries, but rather bring perspective on the results of a specific method of testing DOM manipulation implementations when compared to each other. + +Implementation may differ, as the goal of the benchmarks is to acheive the same function for the end user. + +| Method | `text-interop` | `list-render` | `conditional-render` | +| -------------------- | ------------------------ | ---------------------- | ------------------------- | +| million | 1,275,852 ops/sec ±6.33% | 12,262 ops/sec ±8.60% | 1,013,634 ops/sec ±11.69% | +| virtual-dom | 341,239 ops/sec ±5.09% | 8,466 ops/sec ±4.18% | 356,429 ops/sec ±6.03% | +| vanilla1 | 24,974 ops/sec ±9.21% | 3,417 ops/sec ±8.91% | 19,306 ops/sec ±11.23% | +| baseline2 | 1,264,249 ops/sec ±7.34% | 13,216 ops/sec ±11.83% | 1,027,381 ops/sec ±8.00% | + +1. An implementation the average developer would make when writing just JavaScript +2. The most optimal imperative solution + +Tested on Macbook M1 16 GB, macOS Version 12.0 (Build 21A5268h), Chrome 91.0.4472.164 (Official Build) (arm64) + +_Results last taken 1:04 PM PST, 7/23/2021. Results may differ from the main implementation, and will most likely keep differing based on the elapsed time_ [**→ Click to test benchmarks live**](https://million-benchmarks.netlify.app/)