Best JavaScript Table for Large Datasets (1M Row Benchmark)
The spec says "the table has to handle the full export: about a million rows". Most JavaScript table libraries demo well with 50 rows, and vendor pages all claim to be fast. Very few show numbers you can check.
So we measured. We loaded the same dataset into seven popular libraries at 10,000, 100,000 and 1,000,000 rows and recorded render time, memory, DOM size, sort time and scroll smoothness. This post has the results, what they mean for your choice, and how to handle data that should never be loaded into the browser at all. We build Tabulator, a free MIT licensed data grid, so we published the benchmark code too. Tabulator does not win every column, and we say where it loses.
The short answer
- Up to about 100,000 rows, with editing, grouping and export: Tabulator. It rendered 100,000 rows in about 0.1 seconds, faster than every other full featured grid we tested, and every feature is in the free MIT build.
- A million rows in the browser, read mostly: RevoGrid had the best raw numbers in our tests. Tabulator and AG Grid Community also handled a million rows, with Tabulator rendering faster and AG Grid sorting faster.
- DataTables, Grid.js or simple-datatables: fine for a few thousand rows. At 100,000 rows they took 1 to 13 seconds to load, and simple-datatables crashed at a million.
- Millions of rows, or data that changes on the server: do not ship it all to the browser. Use virtual rendering plus server side paging, sorting and filtering. Tabulator does this for free with
progressiveLoadand the remote modes.
Try it: up to 1,000,000 rows in Tabulator
This is a live Tabulator table. It starts with 100,000 rows. Pick a bigger size to rebuild it, then scroll, click a header to sort, or type in the Name filter. The million row option needs a desktop browser with a few hundred MB of free memory.
Loading the demo...
The row count in the status line is the point. However many rows you load, only a few dozen row elements exist in the page at once. That technique is called virtual rendering (or virtual scrolling), and it is the main thing that separates tables that cope with large datasets from tables that do not.
Benchmark results
All numbers are the median of three runs in headless Chromium on a Linux cloud machine, so treat them as relative, not absolute. A typical laptop will be faster, and a low end phone much slower. Each table has 8 columns (id, name, email, city, amount, date, status, score) and a 500 pixel tall container.
100,000 rows
| Library | Rendering | Time to first paint | Memory added | Sort 100k rows |
|---|---|---|---|---|
| Tabulator 6.7 | Virtual | 103 ms | 17 MB | 384 ms |
| RevoGrid 4.31 | Virtual | 153 ms | 3 MB | 133 ms |
| AG Grid Community 36.3 | Virtual | 183 ms | 24 MB | 201 ms |
| Handsontable 18.1 | Virtual | 857 ms | 4 MB | 902 ms |
| DataTables 3.1 | Paginated | 957 ms | 52 MB | 117 ms |
| Grid.js 6.2 | Paginated | 1,544 ms | 78 MB | 200 ms |
| simple-datatables 10.3 | Paginated | 12,953 ms | 157 MB | 600 ms |
1,000,000 rows
| Library | Time to first paint | Memory added | Sort 1M rows | Fast scroll (avg frame) |
|---|---|---|---|---|
| RevoGrid | 195 ms | 13 MB | 717 ms | 16.7 ms* |
| Tabulator | 499 ms | 162 MB | 4,650 ms | 27.8 ms |
| AG Grid Community | 1,133 ms | 211 MB | 2,766 ms | 17.0 ms |
| Handsontable | 8,298 ms | 28 MB | 11,667 ms | 16.7 ms |
| DataTables | 9,302 ms | 515 MB | 2,117 ms | Paginated |
| Grid.js | 14,373 ms | 771 MB | 4,088 ms | Paginated |
| simple-datatables | Crashed (RangeError: Invalid string length) | |||
* RevoGrid's scroll container moved half as far per frame as the others in our scripted test, so its scroll number is not a like for like comparison.
At 10,000 rows every library except simple-datatables (about 1.3 seconds) painted in under 300 ms. Tabulator was fastest at 68 ms, then AG Grid at 113 ms. At that size, pick on features, not speed.
What the numbers say
- Virtual rendering is what matters. The four virtual grids kept a constant number of DOM elements (274 to 743) whether they held 10,000 or 1,000,000 rows. The paginated tables also keep the DOM small, but they still build an internal record per row up front, which is where DataTables and Grid.js spend 9 to 14 seconds and 500 to 770 MB at a million rows.
- Tabulator is the fastest to first paint among the full featured free grids: about 2 times faster than AG Grid Community at 100,000 and 1,000,000 rows, with less memory.
- Tabulator is not the fastest at sorting a million rows. It took about 4.6 seconds against 2.8 seconds for AG Grid and 0.7 seconds for RevoGrid. At 100,000 rows the gap is a few hundred milliseconds. If your users will sort a million rows in the browser often, sort on the server instead (see below).
- Scrolling. In a gentle, mouse wheel style test (60 pixels per frame) every virtual grid held 60 frames per second at a million rows: Tabulator's 95th percentile frame was 17.4 ms, AG Grid 16.9 ms, RevoGrid 17.0 ms and Handsontable 24.5 ms. In the harsh test, jumping 2,000 pixels every frame as if the user dragged the scrollbar, Tabulator averaged about 36 frames per second while the others stayed near 60.
- Handsontable keeps memory low but is slow to start: over 8 seconds to first paint at a million rows. It is a spreadsheet component first, and it is not free for commercial use.
The libraries
Screenshots below are from the benchmark itself, so you can see each library rendering the same data. The virtual grids are scrolled to the middle of the million row dataset.
Tabulator
Licence: MIT, free for commercial use, no paid tier. Large data features: virtual DOM on by default, horizontal virtual rendering for wide tables, remote pagination, remote sorting and filtering, and progressive loading as the user scrolls.
Tabulator is the pick when the spec is "a big table that also does things": inline editing with validation, grouping, tree data, frozen columns, clipboard, and export to Excel, CSV and PDF. All of it works with virtual rendering, and none of it needs a licence key. Turning on a large dataset requires nothing more than a fixed height:
const table = new Tabulator("#orders", {
height: 600, // a fixed height turns on the virtual DOM
data: rows, // 100,000+ rows is fine
layout: "fitColumns",
columns: [
{ title: "ID", field: "id", sorter: "number", width: 90 },
{ title: "Customer", field: "name", headerFilter: "input" },
{ title: "City", field: "city", headerFilter: "list", headerFilterParams: { valuesLookup: true } },
{ title: "Amount", field: "amount", sorter: "number", hozAlign: "right", formatter: "money" },
{ title: "Status", field: "status" },
],
});
RevoGrid
Licence: MIT core, with Pro editions from $199 per developer per year. RevoGrid is a web component grid built for speed, and it posted the best numbers in our test at a million rows: under 200 ms to first paint, 13 MB of memory and a sub second sort. It is a strong choice for a read mostly table with very large client side data. Check the Pro feature list against your spec before you commit, since several advanced features and plugins sit in the paid editions, and the ecosystem and documentation are smaller than Tabulator's or AG Grid's.
AG Grid Community
Licence: MIT for Community, Enterprise from $999 per developer (see our AG Grid pricing breakdown). AG Grid handled a million rows well, with the smoothest scrolling under the harsh test and a faster sort than Tabulator. The catch for large datasets is the row model. Community includes the client side and Infinite row models, but the Server-Side and Viewport row models, which handle lazy loaded grouping and aggregation on the server, are Enterprise only. Row grouping, pivoting and Excel export are Enterprise features too. See AG Grid alternatives if that is a blocker.
Handsontable
Licence: commercial, free only for non-commercial use and evaluation (see Handsontable pricing). Handsontable is a spreadsheet style editor. It virtualizes rows and columns and kept memory low, but it took over 8 seconds to first paint and over 11 seconds to sort at a million rows. It fits when users need Excel like editing on a moderate dataset more than raw size. For more options in that category, see JavaScript spreadsheet libraries.
DataTables
Licence: MIT, with paid Editor extension. DataTables paginates by default. We enabled its deferRender option, as its docs recommend for large data, and it still needed about 1 second for 100,000 rows and 9 seconds for a million. Its real large data story is server side processing, where the server returns one page at a time, and the Scroller extension for virtual scrolling. Our DataTables alternatives post covers the trade offs.
Grid.js
Licence: MIT. Grid.js is small (about 16 KB gzipped) and pleasant for simple paginated tables. It has no virtual rendering, so all client side data is processed up front: 1.5 seconds at 100,000 rows and 14 seconds and 770 MB at a million. Its server option fetches pages from an API, which is the way to use it with large data.
simple-datatables
Licence: LGPL 3.0. simple-datatables is a dependency free take on DataTables for progressive enhancement of existing HTML tables. It took over a second at 10,000 rows, 13 seconds at 100,000, and failed at a million. Use it for small tables only.
When the data should stay on the server: lazy loading
Virtual rendering solves the DOM problem. It does not solve the network and memory problem. A million rows of JSON is typically 100 MB or more to download, and the table holds all of it in memory. If the dataset is large, grows over time, or is filtered by user permissions, keep it on the server and load only what the user is looking at. There are three common patterns.
- Remote pagination. The server returns one page per request, and sorting and filtering happen in SQL. Simple and predictable.
- Lazy loading on scroll (infinite scroll). The table fetches the next page when the user nears the bottom. Good for feeds and logs.
- Load everything progressively. Fetch the full dataset in chunks so the first rows appear immediately while the rest streams in.
Tabulator supports all three in the free build. Here is lazy loading on scroll, with sorting and filtering handled by the server:
const table = new Tabulator("#events", {
height: 600,
ajaxURL: "/api/events",
progressiveLoad: "scroll", // fetch the next page as the user scrolls
paginationSize: 200, // rows per request
sortMode: "remote", // send sort params to the server
filterMode: "remote", // send filter params to the server
columns: [
{ title: "Time", field: "created_at", sorter: "datetime" },
{ title: "User", field: "user", headerFilter: "input", headerFilterLiveFilterDelay: 400 },
{ title: "Event", field: "event" },
],
});
The server receives page, size, sort and filter parameters and returns { last_page, data }. Swap progressiveLoad: "scroll" for pagination: true, paginationMode: "remote" to get classic page buttons instead. The progressive loading docs and remote pagination docs show the request and response formats.
For comparison: AG Grid Community offers the Infinite row model for lazy loading, but server side grouping needs Enterprise. DataTables and Grid.js offer server side paging. Handsontable expects the data to be in the browser.
Tips for fast tables with large datasets
- Give the table a fixed height. Virtual rendering needs to know how many rows fit. In Tabulator, a table without a height (or
maxHeight) grows to show every row and loses the benefit. - Keep row heights uniform. Variable heights force measurement and make scroll position estimates harder for every virtual grid.
- Use cheap formatters. A formatter runs for every visible cell on every scroll. Avoid building complex HTML or running date parsing in formatters for big tables, and pre-compute values once with a mutator instead.
- Set explicit sorters. Tell the grid a column is a
numberordaterather than letting it guess. It is faster and sorts correctly. - Debounce filters. On 100,000 rows, filtering on every keystroke adds up. Tabulator's
headerFilterLiveFilterDelaywaits until the user pauses typing. - Virtualize columns too. If you have hundreds of columns, turn on
renderHorizontal: "virtual"so off screen columns are not rendered. - Update rows, do not replace data. For live data,
updateDataorupdateOrAddDatachanges only the rows that changed instead of rebuilding the table. - Test on the slowest device in your spec. Our numbers come from a desktop class machine. A mid range phone can be 3 to 5 times slower.
How we tested
The benchmark ran on November 18, 2026 with Playwright and headless Chromium. Each run used a fresh browser context, generated the rows, then called the library's constructor with default settings plus sorting enabled. We measured:
- Time to first paint: from the constructor call until the first data rows were in the DOM and two animation frames had passed.
- Memory added: the JavaScript heap after a forced garbage collection, minus the heap before the grid was created. The source data array is excluded, so this is the grid's own overhead.
- Sort: a programmatic descending sort on the amount column, until the largest value was painted in the top row.
- Scroll: 120 frames jumping 2,000 pixels each (harsh) and 300 frames moving 60 pixels each (gentle), recording the time between animation frames. 16.7 ms means 60 frames per second.
Versions: Tabulator 6.7.1, AG Grid Community 36.3.0, Handsontable 18.1.2, RevoGrid 4.31.5, DataTables 3.1.5, Grid.js 6.2.0 and simple-datatables 10.3.0. The paginated libraries were tested with their default 10 rows per page. Scroll tests were skipped for them. You can download the benchmark harness (libs.js, harness.js, run.js) and run it on your own hardware. If you spot an unfair configuration, tell us on GitHub and we will rerun it.
Which table should you pick for a large dataset?
| Your situation | Pick |
|---|---|
| 10,000 to 200,000 rows with editing, grouping, export, free licence | Tabulator |
| Up to a million read mostly rows in the browser, raw speed first | RevoGrid, or Tabulator if you need its feature set |
| Already on AG Grid, no server side grouping needed | AG Grid Community |
| Excel like editing on a moderate dataset, commercial licence is fine | Handsontable |
| Millions of rows, or data that changes on the server | Any virtual grid with server side loading. Tabulator does it free with progressiveLoad and remote modes |
| A few thousand rows in a simple page | DataTables, Grid.js or Tabulator |
Frequently asked questions
What is the best JavaScript table for large datasets?
For most projects, a grid with virtual rendering and built in server side loading. Tabulator is the best free all rounder: it rendered 100,000 rows in about 0.1 seconds and a million in about 0.5 seconds in our test, and editing, grouping, export and remote loading are all MIT licensed. RevoGrid was faster at a million rows for read mostly tables.
How many rows can a JavaScript table handle?
With virtual rendering, the DOM is not the limit. In our test, Tabulator, AG Grid, RevoGrid and Handsontable all displayed a million rows. The practical limits are download size and browser memory. Tabulator added about 160 MB for a million rows of 8 columns, on top of the data itself. Beyond a few hundred thousand rows, load data from the server on demand.
What is virtual scrolling in a table?
Virtual scrolling (or virtual DOM rendering) creates elements only for the rows currently visible plus a small buffer, and pads the scroll area so the scrollbar behaves as if every row existed. As the user scrolls, rows are recycled. Tabulator's virtual DOM docs explain how its version works.
How do I lazy load data into a JavaScript table?
Use a table that requests pages from your API as the user scrolls. In Tabulator, set ajaxURL and progressiveLoad: "scroll". Add sortMode: "remote" and filterMode: "remote" so the server does the sorting and filtering, and the browser only holds what has been loaded.
Why is my DataTables table slow with large data?
DataTables builds an internal record for every row on load, even with pagination. Turn on deferRender, and for large datasets switch to server side processing so the browser only receives one page. If you also need inline editing or grouping without paid extensions, see the DataTables alternatives.
Is a React table different?
The same rules apply, but React adds re-render costs. See React virtualized table for react-window, TanStack Virtual and Tabulator in React, and best React table libraries for the wider list.
Get started with Tabulator
Install it with npm install tabulator-tables or follow the install guide, then read the virtual DOM and AJAX loading docs. For a wider comparison that is not only about performance, see the best JavaScript table libraries and the JavaScript grid library guide.