Skip to content

Conversation

@cesco69
Copy link
Contributor

@cesco69 cesco69 commented Jan 16, 2026

This is the new output of the benchmark lib compare

node benchmark/bench-cmp-lib.js

--- Schema Creation ---
🏆 AJV Serialize                            x      14,581,479 ops/sec ±0.13% (19131274 runs sampled) (WINNER)
   json-accelerator                         x         814,830 ops/sec ±15.34% (688261 runs sampled)
   compile-json-stringify                   x         331,276 ops/sec ±0.42% (312927 runs sampled)
   fast-json-stringify                      x          10,261 ops/sec ±0.67% (9999 runs sampled)

--- Small Array ---
🏆 Native JSON                              x           9,250 ops/sec ±0.62% (9126 runs sampled) (WINNER)
   fast-json-stringify default              x           8,284 ops/sec ±0.56% (8107 runs sampled)
   fast-json-stringify json-stringify       x           8,201 ops/sec ±0.61% (8010 runs sampled)
   compile-json-stringify                   x           7,103 ops/sec ±0.62% (6936 runs sampled)
   AJV Serialize                            x           7,059 ops/sec ±0.59% (6900 runs sampled)
   json-accelerator                         x           5,912 ops/sec ±0.61% (5807 runs sampled)

--- Large Array ---
🏆 fast-json-stringify default              x             364 ops/sec ±3.86% (344 runs sampled) (WINNER)
   fast-json-stringify json-stringify       x             331 ops/sec ±2.46% (327 runs sampled)
   Native JSON                              x             330 ops/sec ±2.46% (326 runs sampled)
   compile-json-stringify                   x             325 ops/sec ±4.32% (305 runs sampled)
   AJV Serialize                            x             320 ops/sec ±2.60% (309 runs sampled)

--- Long String ---
🏆 fast-json-stringify                      x          50,647 ops/sec ±0.81% (49068 runs sampled) (WINNER)
   json-accelerator                         x          50,292 ops/sec ±0.67% (48797 runs sampled)
   Native JSON                              x          50,048 ops/sec ±0.62% (48605 runs sampled)
   compile-json-stringify                   x          49,243 ops/sec ±0.70% (47601 runs sampled)
   AJV Serialize                            x          18,924 ops/sec ±0.54% (18562 runs sampled)

--- Short String ---
🏆 fast-json-stringify                      x      13,728,730 ops/sec ±0.15% (17877356 runs sampled) (WINNER)
   json-accelerator                         x      12,943,455 ops/sec ±0.12% (16732010 runs sampled)
   compile-json-stringify                   x      11,904,421 ops/sec ±0.11% (15100518 runs sampled)
   AJV Serialize                            x      11,518,399 ops/sec ±0.12% (14452074 runs sampled)
   Native JSON                              x       9,446,058 ops/sec ±0.17% (8682072 runs sampled)

--- Object ---
🏆 compile-json-stringify                   x      10,078,618 ops/sec ±0.15% (11175516 runs sampled) (WINNER)
   AJV Serialize                            x       9,293,696 ops/sec ±0.20% (8286383 runs sampled)
   fast-json-stringify                      x       7,459,338 ops/sec ±14.42% (5587381 runs sampled)
   json-accelerator                         x       6,039,567 ops/sec ±0.40% (5324254 runs sampled)
   Native JSON                              x       4,376,888 ops/sec ±7.77% (3951636 runs sampled)

--- Date ---
🏆 json-accelerate                          x       1,061,823 ops/sec ±0.28% (1017713 runs sampled) (WINNER)
   fast-json-stringify                      x       1,052,413 ops/sec ±2.79% (991154 runs sampled)
   compile-json-stringify                   x         667,656 ops/sec ±0.19% (636431 runs sampled)
   Native JSON                              x         654,866 ops/sec ±16.01% (573587 runs sampled)

Refactor benchmarking output to categorize results by scenario and library, improving readability and organization of performance metrics.

Signed-off-by: francesco <[email protected]>
@cesco69 cesco69 marked this pull request as draft January 16, 2026 16:35
@cesco69 cesco69 marked this pull request as ready for review January 16, 2026 16:43
Comment on lines +360 to +361
const prefix = isWinner ? '🏆 ' : ' '
const suffix = isWinner ? ' (WINNER)' : ''
Copy link
Member

@gurgunday gurgunday Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess having one of them would be cleaner, I'd prefer 🏆 (prefix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants