9 JavaScript Table Libraries at 500K Rows: When HTML table Is Enough and When You Need TanStack Table or AG GridArticle · digest for December 2
Miniature diorama of table virtualization: a sliding window glides smoothly along a ribbon of 500,000 rows while a pile of heavy DOM blocks sits stuck nearby.
Article4 sections≈ 8 min

9 JavaScript Table Libraries at 500K Rows: When HTML table Is Enough and When You Need TanStack Table or AG Grid

When you need to render a data table in the browser, you usually reach for one of two options. The first looks simple: write a plain HTML <table>, tack on an array sort, and call it a day. It flies with a few hundred rows, then freezes the browser tab the moment you load a hundred thousand records. The second path goes the other way: pull in a full suite like AG Grid upfront, only to get hit later by bundle weight and paid feature gates.

The DataHub team led by Rufus Pollock faced this exact choice while picking a table component for CSV datasets. Instead of trusting marketing charts, they built nine prototypes—using raw <table>, TanStack Table, Tabulator, RevoGrid, and five other engines—and pushed them up to half a million rows.

How the 500,000-Row Test Worked

All nine prototypes loaded UK property transaction data from the HM Land Registry. The team tested four dataset sizes: 1,000 rows, 1,000 rows by 80 columns, 50,000 rows, and 500,000 rows.

Measurements were taken on November 21, 2026 (Apple M4, 16 GB RAM, macOS 15.6) using headless Chromium 151 via Playwright 1.62.1 on a production Vite build, taking the median of five loads. Source code and logs live in the experiment repository. Beyond speed, they checked 13 core features: formatting, keyboard sorting (Tab/Enter), text selection, Ctrl+F, and clipboard paste.

Interactive AG Grid Community table running the UK property transactions dataset in DataHub's experiment (Source: tables.datahub.io)

On different hardware, exact milliseconds will shift, but the orders of magnitude and library quirks hold true.

Where Plain table Breaks and How Virtualization Saves It

A native HTML <table> adds roughly one kilobyte, yet forces the browser to lay out every <tr> and <td> DOM node by hand. A couple thousand rows feel snappy, then render time explodes: 50,000 rows take 2.47 seconds at 13 FPS, 100,000 stall the tab for 6.33 seconds, 200,000 pause for 27 seconds, and 500,000 couldn't finish. Sorting 100,000 rows drags past 21 seconds.

Libraries without true virtualization hit a similar wall. DataTables 3.1.5 dropped jQuery, yet spends 8.45 seconds booting 500,000 rows and dips to 47–48 FPS. Observable Inputs 1.0.0 appears to open half a million rows in 10.8 ms, but uses a trick: it renders the first 60 rows and appends more on scroll without removing old DOM nodes. After ten thousand scrolled rows, memory still balloons.

The fix is virtualization (windowing). The browser keeps only a few dozen visible rows plus a small buffer in the DOM, while the remaining hundreds of thousands stay in JavaScript memory and swap in as you scroll.

With virtualization, five libraries hold 500,000 rows at 60 FPS and sort prices in tenths of a second. Perspective 5.9.4 missed the top five: its Web Worker engine scrolls smoothly, but startup takes 1.91 seconds due to a heavy WebAssembly core.

500,000-row render time across the five fastest libraries

Glide Data Grid finished first by drawing onto a <canvas> with zero DOM cells. Among DOM-based grids, RevoGrid led, followed closely by TanStack Table with @tanstack/react-virtual, Tabulator, and AG Grid Community. To the human eye, fractions of a second look nearly identical, so raw speed quickly stopped being the deciding factor.

What Separated the Libraries Once Speed Was Solved

When five engines all scroll half a million rows smoothly, your choice comes down to ergonomics and trade-offs. In DataHub's write-up, four factors split the pack.

First is standard browser behavior. Painting on <canvas> makes Glide Data Grid blazingly fast, yet breaks Ctrl+F and text selection (getSelection()): users can't copy a cell. DOM grids expose rows to the browser, though AG Grid blocks selection without enableCellTextSelection, and Perspective and RevoGrid disable it by default.

Second is the bundle size shipped to the browser.

Gzipped bundle size comparison across 9 JavaScript table libraries in DataHub's test (Source: datahub.io)

Here you see the cost of "batteries included." If your app already uses React, TanStack Table plus its virtualizer add minimal weight. Even modular AG Grid Community builds are noticeably heavier, and Perspective ships 4.36 MB of WebAssembly. You pay for TanStack's lightness with your own code: the test table took 150 lines vs. 40 for AG Grid.

Third is how each library handles layout mistakes. Tabulator hid a trap right in its docs example: setting height: "100%" inside a parent without a fixed height silently turns off virtualization. No console error appears—the grid renders all 50,000 rows at once, hanging the browser for 88 seconds instead of 36 ms. AG Grid fails louder: it collapses to 0 pixels or throws an exception if you forget a module.

Fourth is licensing and maintenance. This eliminated the speed winner, Glide Data Grid: its last stable release landed in February 2024, with no React 19 support. Paid tiers vary among the rest. AG Grid's core is MIT, while grouping, pivot tables, ranges, clipboard, and Excel export require paid Enterprise. DataTables locks its editor and search panes behind Plus starting at $219 per developer. RevoGrid (MIT) places an attribution link in the corner (Pro costs $199–499/year) and doesn't auto-size columns. Tabulator, by contrast, leaves editing, ranges, clipboard, and export completely open under MIT.

Code and Practical Fork: Picking the Right Tool

Looking at the code immediately shows the gap between an all-in-one grid and a headless UI library (which manages state logic while leaving HTML and CSS to you).

Here is AG Grid Community v36. Since v33, you must register modules explicitly via ModuleRegistry, or createGrid throws an error.

import {
  createGrid,
  ModuleRegistry,
  AllCommunityModule,
  themeQuartz,
} from "ag-grid-community";

// Register modules before creating the grid (required since v33)
ModuleRegistry.registerModules([AllCommunityModule]);

const api = createGrid(hostElement, {
  theme: themeQuartz,
  rowData: rows,
  columnDefs: columns,
  // Without this flag, browsers block selecting text in cells
  enableCellTextSelection: true,
});

Forty lines give you sorting, filtering, theming, and virtualization out of the box—great for dense admin panels when the default look and bundle size fit.

TanStack Table v9 takes a different route: features attach statically at module level via tableFeatures, while useVirtualizer handles scrolling.

import {
  useTable,
  tableFeatures,
  flexRender,
  rowSortingFeature,
  createSortedRowModel,
} from "@tanstack/react-table";
import { useVirtualizer } from "@tanstack/react-virtual";

// In v9, needed features are declared once at module scope
const features = tableFeatures({
  rowSortingFeature,
  sortedRowModel: createSortedRowModel(),
});

You write the markup, styles, and scroll container yourself—hence 150 lines of code. In return, the table fits your design system cleanly and hides nothing behind a paywall. Note that v9 docs lagged behind the new API, so checking .d.ts files was often necessary.

If you want a free grid with Excel-style range pasting, look at Tabulator v6—just make sure the container has an explicit CSS height.

import { TabulatorFull as Tabulator } from "tabulator-tables";
import "tabulator-tables/dist/css/tabulator_simple.min.css";

// Host must have an explicit height, or virtualization turns off
const table = new Tabulator(host, {
  data: rows,
  columns: [{ title: "Price", field: "price", editor: "number" }],
  selectableRange: true,
  clipboard: true,
  clipboardPasteParser: "range",
  clipboardPasteAction: "range",
});

That config gives you an editable grid with clipboard support out of the box, framework-agnostic and license-free.

Use case and data sizeBest pickWhat to watch out for
Simple table up to 2–5K rowsNative <table> or Observable InputsZero extra weight, but DOM slows down past ~10,000 rows
Search and pagination without frameworksDataTables 3No jQuery needed, but slow at 500K; editor is paid
Turnkey heavy grid up to 500K rowsAG Grid Community or RevoGridAG Grid has a large bundle and paid Enterprise; RevoGrid adds a corner link
Free Excel-style editingTabulator 6Full MIT features, but strictly guard container CSS height
Custom React design systemTanStack Table 9 + @tanstack/react-virtualTiny footprint and MIT, but more markup and manual scroll setup

DataHub ultimately chose TanStack Table v9 with @tanstack/react-virtual and wrapped them into a <DataTable> component for PortalJS. On top of that foundation, they added mini histograms in column headers and ran SQL queries across 500,000-row Parquet files via DuckDB-WASM in a Web Worker—freedom that easily justifies writing an extra hundred lines of markup.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 6