Skip to content

Commit 0cba977

Browse files
committed
chore(docs): change looks of benchmarking markdowns
1 parent af4bd5b commit 0cba977

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

bunjs_benchmark.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
1. bun tests/benchmark.ts
2+
```
23
Bench 189 KB payload with safe strings
34
┌───┬─────────────────────────┬────────────────────┐
45
│ │ name │ throuput │
@@ -15,9 +16,11 @@ Bench 189 KB payload with unsafe strings
1516
│ 0 │ fast-json-stringify │ 2568.058127749514 │
1617
│ 1 │ niche-json-stringify │ 6805.366821565045 │
1718
└───┴──────────────────────┴───────────────────┘
19+
```
1820

1921

2022
2. bun tests/fast-json-stringify-benchmark.ts
23+
```
2124
short array of numbers...................................:
2225
fast(151,346 ops/sec) vs niche(269,419 ops/sec) vs standard(187,449 ops/sec)
2326
@@ -50,3 +53,4 @@ object with long string property.........................:
5053
5154
object with properties of different types................:
5255
fast(2,526,405 ops/sec) vs niche(3,670,994 ops/sec) vs standard(3,375,536 ops/sec)
56+
```

nodejs_benchmark.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
1. bun x tsx tests/benchmark.ts
2+
```
23
Bench 189 KB payload with safe strings
34
┌─────────┬───────────────────────────┬────────────────────┐
45
│ (index) │ name │ throuput │
@@ -15,8 +16,10 @@ Bench 189 KB payload with unsafe strings
1516
│ 0 │ 'fast-json-stringify' │ 3365.9561674628885 │
1617
│ 1 │ 'niche-json-stringify' │ 5290.381487286346 │
1718
└─────────┴────────────────────────┴────────────────────┘
19+
```
1820

1921
2. bun x tsx tests/fast-json-stringify-benchmark.ts
22+
```
2023
short array of numbers...................................:
2124
fast(77,788 ops/sec) vs niche(85,655 ops/sec) vs standard(108,168 ops/sec)
2225
@@ -49,5 +52,4 @@ object with long string property.........................:
4952
5053
object with properties of different types................:
5154
fast(2,195,924 ops/sec) vs niche(2,894,493 ops/sec) vs standard(3,383,153 ops/sec)
52-
53-
55+
```

0 commit comments

Comments
 (0)