Million
1,000,000-row spreadsheet engine with live formulas
Features
- Holds 1,000,001 rows with 4,000,009 live formulas
- Only the cells that depend on an edit recalculate
- A filled-down column compiles once, to one JavaScript function
- Dependents found by arithmetic, not by per-cell edge lists
- Totals keep themselves: cached SUM and AVERAGE, group indexes for SUMIF, hash indexes for XLOOKUP
- Recalculates in 8 ms slices on a web worker; the grid keeps scrolling
- Canvas grid reads engine memory through a SharedArrayBuffer
- Runs on your machine: no server, no account, no upload
- 56 tests, with differential tests against a full recalculation
Pin configuration and functions
N package, 8-pin, top view
| Pin | Name | I/O | Description |
|---|---|---|---|
| 1 | PARSE | I | Formula parser, printer and reference shifting for paste engine/parser.ts |
| 2 | SHEET | I/O | Columns, compiler, reverse index and sliced recalculation engine/sheet.ts |
| 3 | CACHE | I/O | Range caches, group indexes and lookup indexes engine/caches.ts |
| 4 | CSV | I | Streaming CSV parser engine/csv.ts |
| 5 | PILOT | I | Scripted cursor that drives the landing page components/autopilot.ts |
| 6 | GRID | O | Canvas grid, editor, selection, clipboard and shortcuts components/Grid.tsx |
| 7 | DEMO | I | The million-order demo ledger engine/demo.ts |
| 8 | WORK | I/O | Web worker: edits, undo, paste, CSV import, benchmark engine/worker.ts |
Electrical characteristics
Chrome 156, production build, M5 MacBook Air, demo ledger. Small edits are timed as a batch of 50 and divided. Each result is the median of 7 rounds.
| Parameter | Test conditions | Min | Typ | Max | Unit |
|---|---|---|---|---|---|
| Capacity | |||||
| Rows, demo ledger1,000,000 orders, 8 columns | 1,000,000 orders, 8 columns | – | 1,000,0011,000,001 | – | rows |
| Live formulasWhole ledger, with the summary panel | Whole ledger, with the summary panel | – | 4,000,0094,000,009 | – | formulas |
| Compiled functionsOne per filled-down column | One per filled-down column | – | 1111 | – | fn |
| Engine memoryTyped-array columns | Typed-array columns | – | 129129 | – | MB |
| Built-in functionsFunctions in the formula language | Functions in the formula language | – | 3333 | – | fn |
| Recalculation | |||||
| tLOADBuild and calculate4,000,009 cells | 4,000,009 cells | – | 0.250.25(1) | – | s |
| tEDITSmall editUnits of one order; 12 cells | Units of one order; 12 cells | – | 33 | – | µs |
| tMOVEGroup moveRegion of one order; 4 cells, between SUMIF totals | Region of one order; 4 cells, between SUMIF totals | 1 | –1 to 3 | 3 | µs |
| tCHAINChain editUnits of the first order; 1,000,011 cells | Units of the first order; 1,000,011 cells | 66 | –66 to 69 | 69 | ms |
| tRATEBroadcast editTax rate that every row reads; 3,000,008 cells | Tax rate that every row reads; 3,000,008 cells | – | 185185 | – | ms |
| tSLICERecalculation sliceWeb worker, between grid frames | Web worker, between grid frames | – | 88 | – | ms |
| Input and display | |||||
| tCSVOpen a CSV56.5 MB, 1,000,000 rows, drop to sheet | 56.5 MB, 1,000,000 rows, drop to sheet | – | 0.550.55(1) | – | s |
| Scroll throughputScrollbar drag, top to bottom, 60 fps | Scrollbar drag, top to bottom, 60 fps | – | 24,40024,400(1) | – | rows/frame |
| Grid draw timeCanvas grid, per frame | Canvas grid, per frame | – | 11(1) | – | ms |
(1) The source states this value as “about”. Every number on this page is from the project README. Run bun run bench to measure your own machine.
Typical performance characteristics
Chrome 156, production build, M5 MacBook Air. The 1,000,000-order demo ledger.
Bun 1.4.4, same machine, the same 1,000,000-order ledger. Both engines gave the same values.
HyperFormula does much more than Million: hundreds of functions, named ranges and linked sheets. This shows what a narrow engine can do; it does not say HyperFormula is slow at its own job.
Application circuit
Figure 4. SRJT-001 Typical Application: CSV in, live grid out
Ordering information
| Orderable part | SRJT-001 MILLION |
|---|---|
| Status | Active |
| Package | Browser, web worker |
| Live | million.srijit.me |
| Source | github.com/DevSrijit/million |
| License | MIT |
| Build | Next.js 16, React 19, TypeScript. The engine and the grid use no libraries. |