Bunker LabsResearch facility
- 11 divisions
- 55 experiments
- 8 working
- 0 validated
- 0 archived
BL-06-04 Research dossier · Division 06, Experimental Computing
Browser memory limit experiments
Open Browser Limits Lab Working, experimental, not validated.
Lifecycle: stage 3 of 6
- 1 Research concept (passed)
- 2 Proof of concept (passed)
- 3 Experimental implementation (current stage)
- 4 Public testing (not reached)
- 5 Validation and optimization (not reached)
- 6 Graduation or archival (not reached)
Dossier
- Purpose
- Find the largest single block of memory (an ArrayBuffer) the browser will hand out on the visitor’s device, safely and without crashing the tab.
- Methodology
- Try one ArrayBuffer at a time, stepping up from 16 MB (16, 32, 64, 128, 256, 512 MB, then 768 MB, 1, 1.5, 2, 3 and 4 GB) and stopping at the first size that fails.
- Each size is tried in a fresh Worker that is shut down straight after, so the memory is released before the next step.
- A ceiling (1, 2 or 4 GB, chosen by the visitor; the default depends on the memory the device reports) and a time limit on each step keep the test from going too far.
- Where the browser reports it (Chromium), the JavaScript heap limit is shown alongside, with what it does and does not cover.
- Browser
- Any current browser with Web Workers.
- Hardware
- Any. Choose a low ceiling on phones and low-memory devices.
- Known limitations
- It measures the largest single allocation the browser allows, not free RAM. An untouched buffer may not occupy physical memory until it is written to.
- Several smaller blocks together can often exceed the largest single one.
- The answer depends on the browser, 32- or 64-bit, other open tabs and the operating system’s memory pressure at that moment.
- The ceiling means a device that could go further shows "reached the ceiling", not its true limit.
- Resource usage
- Up to the chosen ceiling of memory, one block at a time, released after each step. A few seconds in all.
- Validation
- Not validated yet. It has been run on the developer’s own Windows PC in Microsoft Edge only; it has not been tried across a range of browsers and devices.
- Where data is processed
- In your browser. The results stay on the page: nothing is uploaded or stored, and the page does not keep them after you leave.
Journal
Memory test added to Browser Limits Lab: single ArrayBuffers in safe steps, one fresh Worker per step, a ceiling of up to 4 GB and a Stop button.
Builds on
Existing tools this project starts from. They are foundations, not the experiment.
- Database ViewerTool on the site