We needed a new JS table library for DataHub's dataset preview: has to show a CSV of anywhere from a hundred rows to half a million.

I went looking for a comparison of table libraries and found lists: a dozen names, a feature matrix, no demos, and often a closing paragraph that just said: "it depends".

So we built a proper comparison:

https://tables.datahub.io

What to use

Here's what we'd use.

Job Use Runner-up
A table on a page (up to a few thousand rows) Plain <table> Observable Inputs
A big grid (up to 500,000 rows, sort and filter built in) AG Grid Community RevoGrid
An editable grid (edit cells, paste ranges) Tabulator RevoGrid

If you are in React and want your own markup and CSS, use TanStack Table with a virtualizer. That is what DataHub does.

The nine tables over the same 1,000 rows, each with its own bundle size and line count

What we did

Eight libraries and a plain <table>, on the same UK Land Registry sales data at 1,000 rows, 1,000 rows by 80 columns, 50,000 and 500,000, with the same harness and cell formatter. We measured gzipped bundle size, lines written, render time, scroll FPS, sort at 500,000 rows, text selection, keyboard sort and a small edit test. We also checked 13 features per library: see the compare page.

What we found

Speed doesn't pick a winner. Five grids (Glide, RevoGrid, TanStack, Tabulator, AG Grid) render 500,000 rows in 17 to 233 ms, scroll at 60 fps and sort by price in 0.1 to 0.42 s. Glide has no built-in sort, so its 0.1 s is our own code. Perspective takes 1.9 s and DataTables 8.5 s (its own FAQ says stop at about 50,000 rows).

Four other things separated them.

Text you can find and copy. Every grid except Glide, which is canvas, puts visible cells in the DOM, so Ctrl-F finds them. Only those: a virtualized grid has the rest unmounted. Browser text selection works in the plain table, Observable, Tabulator, TanStack and DataTables. AG Grid blocks it unless you set enableCellTextSelection; Perspective and RevoGrid block it. For a data site this is most of the job.

Weight. From 1 kB for a plain <table> to 332 kB for AG Grid. The chart has the rest.

Library code shipped, gzipped kB, for the nine entries

How it fails. Tabulator's height: "100%", the pattern its docs give for filling a container, renders every row when the parent has no resolved height: 88 seconds at 50,000 rows against 36 ms with a sized parent, and nothing logged. AG Grid, given the same mistake, draws a visibly empty grid.

Whether it's still shipping. Glide Data Grid's last stable release was February 2024 and it is React 16 to 18 only. Our first draft picked it for large data. We reversed that.

The picks

A table on a page: plain <table>. 39 lines, 1 kB, 1,000 rows in about 55 ms. It prints, it copies, dark mode is CSS. But it lays out every row: 2.5 s at 50,000. For sort on click in one call, use Inputs.table(rows) from Observable and keep it under about ten thousand rows.

A big grid: AG Grid Community. 40 lines for sort, filter and virtualization. It is 332 kB as the quick start ships it (272 kB lean). Community is MIT; grouping, pivot, range selection, clipboard and Excel export are Enterprise. Runner-up RevoGrid is the fastest DOM grid we measured at 500,000 rows (62 ms), with clipboard free, if you accept the "RevoGrid" link in the corner.

An editable grid: Tabulator. The test: double-click a price and type, then paste three lines onto a cell. Tabulator passed with options from its own spreadsheet example, all free and MIT. RevoGrid passed with no config. AG Grid Community edits a cell, but paste is Enterprise.

Build your own: TanStack Table with a virtualizer. Headless: it computes rows, sorting and columns and you write every element. Our demo is 150 lines. v9 is a redesign and its docs lag it.

What DataHub will use

TanStack Table with react-virtual, wrapped once as a <DataTable> component in PortalJS. We already ship React, so the table costs 24 kB, not 332, and the preview is text people can Ctrl-F and copy a postcode out of. In exchange we write dataset-wide search, keyboard handling and virtualization ourselves.

Method and caveats

Every figure is the median of five page loads on one M4 laptop in headless Chromium, so treat them as an order of magnitude and re-measure in your own browser. The Tabulator 88 seconds was timed by hand. Agents built and measured the demos under our direction; we chose the verdict. Here are the script and the raw runs.

Try it

All nine are live, with source and the measure buttons:

https://tables.datahub.io

Tell us what we got wrong or missed.

Same treatment for line charts: linecharts.datahub.io.

Contains HM Land Registry data, Crown copyright and database right 2026, Open Government Licence v3.0.

Originally published on the DataHub blog.