Skip to content

Commit e3eb398

Browse files
nekevssshruti2522
authored andcommitted
Hopefully fix table formatting (boa-dev#33)
1 parent 2a63f33 commit e3eb398

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notes/coll_alloc_supertrait/arena2_vs_arena3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ but arena3 fits more objects into the same amount of memory
1717
arena2 is faster at every size and the gap grows as object count goes up
1818

1919
| objects | arena3 | arena2 |
20+
|---------|---------|---------|
2021
| 100 | 1.02 µs | 643 ns |
2122
| 500 | 4.15 µs | 1.83 µs |
2223
| 1000 | 8.36 µs | 2.77 µs |
@@ -33,6 +34,7 @@ header on every object. But this bench is measuring allocation time, not memory
3334
writing the header is cheap, what costs time in arena3 is the size class routing.
3435

3536
| objects | arena3 (0-byte header) | arena2 (8-byte header) |
37+
|---------|---------|---------|
3638
| 100 | 781 ns | 257 ns |
3739
| 500 | 3.56 µs | 1.08 µs |
3840
| 1000 | 7.02 µs | 2.15 µs |
@@ -89,6 +91,7 @@ the whole suite
8991
time to free all objects and reclaim dead arenas:
9092

9193
| objects | arena3 | arena2 |
94+
|---------|---------|---------|
9295
| 100 | 951 ns | 665 ns |
9396
| 500 | 2.57 µs | 2.11 µs |
9497
| 1000 | 4.65 µs | 4.97 µs |

0 commit comments

Comments
 (0)