What are the performance and memory optimization effects of using NaN-boxing versus not using it?

Open
#609 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Active
Tech stack
c
Domain
performance

Research direction

The issue reports a macOS ARM64 microbenchmark comparing NaN-boxing with the alternative, including JetStream performance and peak RSS results. Start by locating the NaN-boxing implementation and benchmark setup in the QuickJS repository, then compare the configurations and measurement methods. Done means establishing whether the reported changes are reproducible and explaining the results; the issue names no files or tests.

Written by the indexing model from the issue text.

Description

In local microbench on macOS ARM64, no significant optimization was observed; JetStream performance degraded by 8.1%, while peak RSS memory usage decreased by 2.9%.
Are these results in line with expectations?

Image Image Image
Dominant language
C
Stars
11.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bellard/quickjs

All issues in bellard/quickjs

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.