Skip to content

Add arena allocator#1551

Merged
saghul merged 1 commit into
masterfrom
arena-allocator
Jun 30, 2026
Merged

Add arena allocator#1551
saghul merged 1 commit into
masterfrom
arena-allocator

Conversation

@saghul

@saghul saghul commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Adapted from commit 99e9181d117a ("added custom malloc for small
blocks (11% faster on bench-v8)" https://github.com/bellard/quickjs).

Benchmarks:

┌─────────────────┬──────┬──────────┬─────────────┬─────────┐
│    Benchmark    │  NG  │ NG+arena │ NG+arena+mi │ Bellard │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Richards        │ 1207 │ 1221     │ 1221        │ 1210    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ DeltaBlue       │ 1211 │ 1289     │ 1309        │ 1295    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Crypto          │ 1070 │ 1075     │ 1106        │ 973     │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ RayTrace        │ 1977 │ 2883     │ 2942        │ 2866    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ EarleyBoyer     │ 2690 │ 3540     │ 3610        │ 3548    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ RegExp          │ 432  │ 492      │ 499         │ 557     │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Splay           │ 3569 │ 5802     │ 5851        │ 6087    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ NavierStokes    │ 2202 │ 2192     │ 2192        │ 1843    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Score (geomean) │ 1511 │ 1783     │ 1817        │ 1764    │
└─────────────────┴──────┴──────────┴─────────────┴─────────┘

Adapted from commit 99e9181d117a ("added custom malloc for small
blocks (11% faster on bench-v8)" https://github.com/bellard/quickjs).

Benchmarks:

```
┌─────────────────┬──────┬──────────┬─────────────┬─────────┐
│    Benchmark    │  NG  │ NG+arena │ NG+arena+mi │ Bellard │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Richards        │ 1207 │ 1221     │ 1221        │ 1210    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ DeltaBlue       │ 1211 │ 1289     │ 1309        │ 1295    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Crypto          │ 1070 │ 1075     │ 1106        │ 973     │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ RayTrace        │ 1977 │ 2883     │ 2942        │ 2866    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ EarleyBoyer     │ 2690 │ 3540     │ 3610        │ 3548    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ RegExp          │ 432  │ 492      │ 499         │ 557     │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Splay           │ 3569 │ 5802     │ 5851        │ 6087    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ NavierStokes    │ 2202 │ 2192     │ 2192        │ 1843    │
├─────────────────┼──────┼──────────┼─────────────┼─────────┤
│ Score (geomean) │ 1511 │ 1783     │ 1817        │ 1764    │
└─────────────────┴──────┴──────────┴─────────────┴─────────┘
```
@saghul saghul marked this pull request as ready for review June 29, 2026 12:39
@saghul saghul merged commit 9de2921 into master Jun 30, 2026
125 checks passed
@saghul saghul deleted the arena-allocator branch June 30, 2026 08:45
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.

1 participant