Skip to content

About

A reproducible benchmark of the Infinite Table, MUI X Data Grid, AG Grid and TanStack Table React DataGrids at 1,000,000 rows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DataGrid performance comparison: Infinite Table vs MUI X Data Grid, AG Grid and TanStack Table

A reproducible benchmark of four React DataGrids at 1,000,000 rows: mount time, memory, sorting, scrolling and live data updates - with the rows as they are, sorted, filtered, and grouped with aggregations.

All of them are installed from npm, render the same data in the same browser, and get the same interactions. The benchmark runs again whenever a new version of any of them is published, and the results below are updated - or you can run it yourself, with any versions.

Two things to know before reading the numbers - both are explained in What is compared:

  • TanStack Table renders nothing by itself. What is measured is TanStack Table plus TanStack Virtual plus the markup of the official example - a much smaller thing than a full grid, with no keyboard navigation, cell selection, column menus or pinned columns.
  • With 1,000,000 rows, MUI X Data Grid and TanStack Table can't scroll past row 838,860. Infinite Table and AG Grid reach the last row.

The write-up, with the reasoning behind the methodology: Benchmarking Infinite Table, MUI X Data Grid, AG Grid and TanStack Table with a million rows.

We make Infinite Table, so read this with healthy suspicion - that is why the whole thing is here for you to run.

Infinite Table itself lives at infinite-table/infinite-react. If the benchmark is useful to you, a star there (and here) helps other developers find it.

Results

Infinite Table 11.0.1 vs MUI X Data Grid 9.18.0 (the free DataGrid), AG Grid React 36.3.0 (Community) and TanStack Table 9.3.1 (with TanStack Virtual 3.14.26) - measured on 2026-11-27, on GitHub Actions, ubuntu-24.04 (AMD EPYC 9V74 80-Core Processor × 4), in Chrome 136.0.7103.25 (headless). Every value is the median of 5 runs.

The absolute numbers depend on the machine - compare the grids, not the milliseconds. In the table under the charts, a difference is only called when the 95% confidence interval excludes "no difference".

At a glance - 1,000,000 rows (lower is better). Mount: first rows painted: MUI X Data Grid 638 ms, AG Grid 814 ms, TanStack Table 666 ms, Infinite Table 487 ms; Sort a string column: MUI X Data Grid 4,380 ms, AG Grid 3,476 ms, TanStack Table 4,561 ms, Infinite Table 1,637 ms; Sort a number column: MUI X Data Grid 2,092 ms, AG Grid 2,890 ms, TanStack Table 3,784 ms, Infinite Table 531 ms. Mount time (lower is better). First rows painted, 1M rows: MUI X Data Grid 638 ms, AG Grid 814 ms, TanStack Table 666 ms, Infinite Table 487 ms; Settled (no more DOM changes), 1M rows: MUI X Data Grid 638 ms, AG Grid 916 ms, TanStack Table 666 ms, Infinite Table 487 ms. Memory: JavaScript heap retained by the grid (lower is better). 1M rows: MUI X Data Grid 150 MB, AG Grid 213 MB, TanStack Table 287 MB, Infinite Table 90.7 MB. Sorting 1,000,000 rows: click to sorted rows painted (lower is better). String column, ascending: MUI X Data Grid 4,380 ms, AG Grid 3,476 ms, TanStack Table 4,561 ms, Infinite Table 1,637 ms; String column, descending: MUI X Data Grid 4,554 ms, AG Grid 3,620 ms, TanStack Table 4,478 ms, Infinite Table 1,814 ms; Number column, ascending: MUI X Data Grid 2,092 ms, AG Grid 2,890 ms, TanStack Table 3,784 ms, Infinite Table 531 ms; Number column, descending: MUI X Data Grid 2,957 ms, AG Grid 2,923 ms, TanStack Table 3,592 ms, Infinite Table 559 ms.

The string column is lowercase a-z text, sorted in an en-US browser. The grids do not compare strings the same way - see String sorting.

Jumping to a far-away scroll position (lower is better). 1M rows: MUI X Data Grid 22.3 ms, AG Grid 33.3 ms, TanStack Table 12 ms, Infinite Table 33.7 ms.

With 1M rows, MUI X Data Grid and TanStack Table (with TanStack Virtual) cannot scroll past row 838,860 - see Scroll range.

Vertical scrolling: frames fully presented (higher is better). 1M rows: MUI X Data Grid 50.3%, AG Grid 49.7%, TanStack Table 50.3%, Infinite Table 62.3%. Vertical scrolling, 1M rows: main-thread work (lower is better). Scripting: MUI X Data Grid 608 ms, AG Grid 778 ms, TanStack Table 352 ms, Infinite Table 753 ms; Layout: MUI X Data Grid 61.4 ms, AG Grid 105 ms, TanStack Table 81.8 ms, Infinite Table 94.2 ms; Style recalculation: MUI X Data Grid 89.4 ms, AG Grid 414 ms, TanStack Table 44.6 ms, Infinite Table 250 ms; All tasks: MUI X Data Grid 1,451 ms, AG Grid 1,881 ms, TanStack Table 947 ms, Infinite Table 1,660 ms. Horizontal scrolling, 1M rows: main-thread work (lower is better). Scripting: MUI X Data Grid 336 ms, AG Grid 238 ms, TanStack Table 150 ms, Infinite Table 161 ms; Layout: MUI X Data Grid 44.6 ms, AG Grid 64.7 ms, TanStack Table 46.5 ms, Infinite Table 11.4 ms; Style recalculation: MUI X Data Grid 23.1 ms, AG Grid 42.5 ms, TanStack Table 13.3 ms, Infinite Table 46.6 ms; All tasks: MUI X Data Grid 719 ms, AG Grid 563 ms, TanStack Table 392 ms, Infinite Table 475 ms. Live updates, 1,000,000 rows: update to rows painted (lower is better). Rows as they are: MUI X Data Grid 464 ms, AG Grid 105 ms, TanStack Table 467 ms, Infinite Table 292 ms; Sorted by the salary, which the updates change: MUI X Data Grid 2,247 ms, AG Grid 3,747 ms, TanStack Table 4,504 ms, Infinite Table 484 ms; Filtered on the salary: MUI X Data Grid 683 ms, AG Grid 322 ms, TanStack Table 1,696 ms, Infinite Table 286 ms; Grouped by department, salaries summed: TanStack Table 1,804 ms, Infinite Table 941 ms. A feed of 50 updates a second, 1,000,000 rows: lag at the end (lower is better). Rows as they are: MUI X Data Grid 977 ms, AG Grid 132 ms, TanStack Table 768 ms, Infinite Table 330 ms; Sorted by the salary, which the updates change: MUI X Data Grid 2,744 ms, AG Grid 7,546 ms, TanStack Table 5,200 ms, Infinite Table 625 ms; Filtered on the salary: MUI X Data Grid 772 ms, AG Grid 431 ms, TanStack Table 2,290 ms, Infinite Table 305 ms; Grouped by department, salaries summed: TanStack Table 3,307 ms, Infinite Table 2,189 ms. A feed of 50 updates a second, 1,000,000 rows: frame rate (higher is better). Rows as they are: MUI X Data Grid 3.03 fps, AG Grid 10 fps, TanStack Table 1.9 fps, Infinite Table 5.8 fps; Sorted by the salary, which the updates change: MUI X Data Grid 0.59 fps, AG Grid 0.26 fps, TanStack Table 0.22 fps, Infinite Table 3.04 fps; Filtered on the salary: MUI X Data Grid 2.1 fps, AG Grid 2.96 fps, TanStack Table 0.64 fps, Infinite Table 6.55 fps; Grouped by department, salaries summed: TanStack Table 0.55 fps, Infinite Table 1.44 fps. A feed of 50 updates a second, 1,000,000 rows: main-thread work (lower is better). Rows as they are: MUI X Data Grid 4,958 ms, AG Grid 4,077 ms, TanStack Table 4,749 ms, Infinite Table 4,317 ms; Sorted by the salary, which the updates change: MUI X Data Grid 6,725 ms, AG Grid 11,524 ms, TanStack Table 9,182 ms, Infinite Table 4,606 ms; Filtered on the salary: MUI X Data Grid 5,040 ms, AG Grid 4,382 ms, TanStack Table 6,275 ms, Infinite Table 4,288 ms; Grouped by department, salaries summed: TanStack Table 8,029 ms, Infinite Table 6,171 ms.
The same numbers, as a table - and how Infinite Table compares with each grid
MUI X Data Grid AG Grid TanStack Table Infinite Table Infinite Table vs each grid
Mount - First rows painted, 1M rows 638 ms 814 ms 666 ms 487 ms vs MUI X Data Grid: Infinite Table 24% lower
vs AG Grid: Infinite Table 40% lower
vs TanStack Table: Infinite Table 27% lower
Mount - Settled (no more DOM changes), 1M rows 638 ms 916 ms 666 ms 487 ms vs MUI X Data Grid: Infinite Table 24% lower
vs AG Grid: Infinite Table 47% lower
vs TanStack Table: Infinite Table 27% lower
Memory - 1M rows 150 MB 213 MB 287 MB 90.7 MB vs MUI X Data Grid: Infinite Table 40% lower
vs AG Grid: Infinite Table 2.35× lower
vs TanStack Table: Infinite Table 3.16× lower
Sort, 1M rows - String column, ascending 4,380 ms 3,476 ms 4,561 ms 1,637 ms vs MUI X Data Grid: Infinite Table 2.67× lower
vs AG Grid: Infinite Table 2.12× lower
vs TanStack Table: Infinite Table 2.79× lower
Sort, 1M rows - String column, descending 4,554 ms 3,620 ms 4,478 ms 1,814 ms vs MUI X Data Grid: Infinite Table 2.51× lower
vs AG Grid: Infinite Table 50% lower
vs TanStack Table: Infinite Table 2.47× lower
Sort, 1M rows - Number column, ascending 2,092 ms 2,890 ms 3,784 ms 531 ms vs MUI X Data Grid: Infinite Table 3.94× lower
vs AG Grid: Infinite Table 5.45× lower
vs TanStack Table: Infinite Table 7.13× lower
Sort, 1M rows - Number column, descending 2,957 ms 2,923 ms 3,592 ms 559 ms vs MUI X Data Grid: Infinite Table 5.29× lower
vs AG Grid: Infinite Table 5.23× lower
vs TanStack Table: Infinite Table 6.42× lower
Jump to rows painted - 1M rows 22.3 ms 33.3 ms 12 ms 33.7 ms vs MUI X Data Grid: MUI X Data Grid 34% lower
vs AG Grid: no significant difference
vs TanStack Table: TanStack Table 2.8× lower
Vertical scrolling, frames fully presented - 1M rows 50.3% 49.7% 50.3% 62.3% vs MUI X Data Grid: Infinite Table 12 points higher
vs AG Grid: Infinite Table 12.6 points higher
vs TanStack Table: Infinite Table 12 points higher
Vertical scrolling, 1M rows, main-thread work - Scripting 608 ms 778 ms 352 ms 753 ms vs MUI X Data Grid: MUI X Data Grid 19% lower
vs AG Grid: no significant difference
vs TanStack Table: TanStack Table 2.14× lower
Vertical scrolling, 1M rows, main-thread work - Layout 61.4 ms 105 ms 81.8 ms 94.2 ms vs MUI X Data Grid: MUI X Data Grid 35% lower
vs AG Grid: Infinite Table 11% lower
vs TanStack Table: TanStack Table 13% lower
Vertical scrolling, 1M rows, main-thread work - Style recalculation 89.4 ms 414 ms 44.6 ms 250 ms vs MUI X Data Grid: MUI X Data Grid 2.79× lower
vs AG Grid: Infinite Table 40% lower
vs TanStack Table: TanStack Table 5.6× lower
Vertical scrolling, 1M rows, main-thread work - All tasks 1,451 ms 1,881 ms 947 ms 1,660 ms vs MUI X Data Grid: MUI X Data Grid 13% lower
vs AG Grid: Infinite Table 12% lower
vs TanStack Table: TanStack Table 43% lower
Horizontal scrolling, 1M rows, main-thread work - Scripting 336 ms 238 ms 150 ms 161 ms vs MUI X Data Grid: Infinite Table 2.1× lower
vs AG Grid: Infinite Table 32% lower
vs TanStack Table: no significant difference
Horizontal scrolling, 1M rows, main-thread work - Layout 44.6 ms 64.7 ms 46.5 ms 11.4 ms vs MUI X Data Grid: Infinite Table 3.91× lower
vs AG Grid: Infinite Table 5.68× lower
vs TanStack Table: Infinite Table 4.09× lower
Horizontal scrolling, 1M rows, main-thread work - Style recalculation 23.1 ms 42.5 ms 13.3 ms 46.6 ms vs MUI X Data Grid: MUI X Data Grid 2.02× lower
vs AG Grid: AG Grid 9% lower
vs TanStack Table: TanStack Table 3.5× lower
Horizontal scrolling, 1M rows, main-thread work - All tasks 719 ms 563 ms 392 ms 475 ms vs MUI X Data Grid: Infinite Table 34% lower
vs AG Grid: Infinite Table 16% lower
vs TanStack Table: TanStack Table 18% lower
Live updates, 1M rows - Rows as they are 464 ms 105 ms 467 ms 292 ms vs MUI X Data Grid: Infinite Table 37% lower
vs AG Grid: AG Grid 2.78× lower
vs TanStack Table: Infinite Table 37% lower
Live updates, 1M rows - Sorted by the salary, which the updates change 2,247 ms 3,747 ms 4,504 ms 484 ms vs MUI X Data Grid: Infinite Table 4.64× lower
vs AG Grid: Infinite Table 7.74× lower
vs TanStack Table: Infinite Table 9.3× lower
Live updates, 1M rows - Filtered on the salary 683 ms 322 ms 1,696 ms 286 ms vs MUI X Data Grid: Infinite Table 2.39× lower
vs AG Grid: Infinite Table 11% lower
vs TanStack Table: Infinite Table 5.93× lower
Live updates, 1M rows - Grouped by department, salaries summed – – 1,804 ms 941 ms vs TanStack Table: Infinite Table 48% lower
A feed of 50 updates a second, 1M rows, lag at the end - Rows as they are 977 ms 132 ms 768 ms 330 ms vs MUI X Data Grid: Infinite Table 2.96× lower
vs AG Grid: AG Grid 2.5× lower
vs TanStack Table: Infinite Table 2.33× lower
A feed of 50 updates a second, 1M rows, lag at the end - Sorted by the salary, which the updates change 2,744 ms 7,546 ms 5,200 ms 625 ms vs MUI X Data Grid: Infinite Table 4.39× lower
vs AG Grid: Infinite Table 12.1× lower
vs TanStack Table: Infinite Table 8.32× lower
A feed of 50 updates a second, 1M rows, lag at the end - Filtered on the salary 772 ms 431 ms 2,290 ms 305 ms vs MUI X Data Grid: Infinite Table 2.53× lower
vs AG Grid: no significant difference
vs TanStack Table: Infinite Table 7.5× lower
A feed of 50 updates a second, 1M rows, lag at the end - Grouped by department, salaries summed – – 3,307 ms 2,189 ms vs TanStack Table: Infinite Table 34% lower
A feed of 50 updates a second, 1M rows, frame rate - Rows as they are 3.03 fps 10 fps 1.9 fps 5.8 fps vs MUI X Data Grid: Infinite Table 92% higher
vs AG Grid: AG Grid 73% higher
vs TanStack Table: Infinite Table 3.06× higher
A feed of 50 updates a second, 1M rows, frame rate - Sorted by the salary, which the updates change 0.59 fps 0.26 fps 0.22 fps 3.04 fps vs MUI X Data Grid: Infinite Table 5.11× higher
vs AG Grid: Infinite Table 11.7× higher
vs TanStack Table: Infinite Table 14× higher
A feed of 50 updates a second, 1M rows, frame rate - Filtered on the salary 2.1 fps 2.96 fps 0.64 fps 6.55 fps vs MUI X Data Grid: Infinite Table 3.11× higher
vs AG Grid: Infinite Table 2.21× higher
vs TanStack Table: Infinite Table 10.3× higher
A feed of 50 updates a second, 1M rows, frame rate - Grouped by department, salaries summed – – 0.55 fps 1.44 fps vs TanStack Table: Infinite Table 2.63× higher
A feed of 50 updates a second, 1M rows, main-thread work - Rows as they are 4,958 ms 4,077 ms 4,749 ms 4,317 ms vs MUI X Data Grid: Infinite Table 13% lower
vs AG Grid: AG Grid 6% lower
vs TanStack Table: Infinite Table 9% lower
A feed of 50 updates a second, 1M rows, main-thread work - Sorted by the salary, which the updates change 6,725 ms 11,524 ms 9,182 ms 4,606 ms vs MUI X Data Grid: Infinite Table 32% lower
vs AG Grid: Infinite Table 2.5× lower
vs TanStack Table: Infinite Table 50% lower
A feed of 50 updates a second, 1M rows, main-thread work - Filtered on the salary 5,040 ms 4,382 ms 6,275 ms 4,288 ms vs MUI X Data Grid: Infinite Table 15% lower
vs AG Grid: no significant difference
vs TanStack Table: Infinite Table 32% lower
A feed of 50 updates a second, 1M rows, main-thread work - Grouped by department, salaries summed – – 8,029 ms 6,171 ms vs TanStack Table: Infinite Table 23% lower

Every metric of every scenario, with standard deviations and confidence intervals: full report · raw samples.

History

Every set of versions measured so far, newest first, with a row for each grid. All the values are times in ms, except memory, in MB - lower is better. Runs measured on different machines can't be compared in absolute terms (hosted runners don't all have the same CPU) - compare how the grids relate within a run. The branch of a run has the code, the lockfile and the full results of that run.

Run Grid Mount 1M Sort string 1M Sort number 1M Memory 1M Vertical scroll work 1M Horizontal scroll work 1M Update sorted 1M Feed lag sorted 1M
2026-11-27
GitHub Actions, ubuntu-24.04 · AMD EPYC 9V74 80-Core Processor × 4
branch
Infinite Table 11.0.1 487 1,637 531 90.7 1,660 475 484 625
MUI X Data Grid 9.18.0 638 4,380 2,092 150 1,451 719 2,247 2,744
AG Grid 36.3.0 814 3,476 2,890 213 1,881 563 3,747 7,546
TanStack Table 9.3.1 666 4,561 3,784 287 947 392 4,504 5,200
2026-11-26
GitHub Actions, ubuntu-24.04 · AMD EPYC 9V74 80-Core Processor × 4
branch
Infinite Table 11.0.0 519 1,813 534 90.7 1,738 513 494 839
MUI X Data Grid 9.18.0 648 4,435 2,315 150 1,534 776 2,401 3,156
AG Grid 36.3.0 796 3,544 3,024 213 2,036 597 3,964 8,186
TanStack Table 9.3.1 657 4,704 3,948 287 992 432 4,754 5,627
2026-11-25
GitHub Actions, ubuntu-24.04 · Intel(R) Xeon(R) 6975P-C × 4
branch
Infinite Table 10.2.1 484 1,363 514 90.7 1,355 443 505 610
MUI X Data Grid 9.18.0 636 3,458 1,853 150 1,160 673 2,118 2,741
AG Grid 36.3.0 747 3,138 2,982 213 1,558 499 4,169 8,370
TanStack Table 9.3.1 598 4,115 3,340 287 782 369 4,162 5,029
2026-11-17
GitHub Actions, ubuntu-24.04 · Intel(R) Xeon(R) 6975P-C × 4
branch
Infinite Table 10.2.0 504 1,443 1,196 90.7 1,774 479 – –
MUI X Data Grid 9.18.0 663 3,726 2,159 150 1,339 679 – –
AG Grid 36.3.0 760 3,417 3,256 213 1,712 523 – –
TanStack Table 9.3.1 621 4,457 3,652 287 935 399 – –
2026-11-14
GitHub Actions, ubuntu-24.04 · Intel(R) Xeon(R) 6975P-C × 4
branch
Infinite Table 10.1.5 470 1,450 1,251 90.6 1,645 418 – –
MUI X Data Grid 9.18.0 628 3,911 2,196 150 1,312 591 – –
AG Grid 36.3.0 743 3,347 3,405 213 1,635 422 – –
TanStack Table 9.3.1 595 4,452 3,814 287 856 310 – –
2026-11-12
GitHub Actions, ubuntu-24.04 · AMD EPYC 9V74 80-Core Processor × 4
branch
Infinite Table 10.1.5 565 2,120 1,374 90.7 2,081 570 – –
MUI X Data Grid 9.17.0 745 5,466 2,596 150 1,693 806 – –
AG Grid 36.3.0 808 4,067 3,306 213 2,155 665 – –
TanStack Table 9.3.1 659 6,083 4,510 287 1,103 472 – –
2026-11-11
GitHub Actions, ubuntu-24.04 · AMD EPYC 9V45 96-Core Processor × 4
branch
Infinite Table 10.1.4 411 1,380 1,140 90.7 1,706 394 – –
AG Grid 36.3.0 611 3,088 2,710 213 1,725 588 – –

Run it

You need git and Node.js 20 or newer (we used 22). It runs on macOS and Linux. Playwright downloads its own Chromium, so it doesn't matter which browser you have installed.

git clone https://github.com/infinite-table/datagrid-performance-comparison.git
cd datagrid-performance-comparison
npm install
npx playwright install chromium

# production build, then every scenario at 1M rows
BENCH_HEADLESS=1 npm run benchmark

A full run takes about an hour on a GitHub-hosted runner: 17 scenarios × 4 grids × 6 runs - 1 warmup and 5 measured (the 2 grouped scenarios with 2 grids). BENCH_SIZES=300k,1m adds a 300,000 rows dataset, for about 40 minutes more. Without BENCH_HEADLESS=1 it opens real browser windows - closer to what users see, but you have to leave the machine alone while they come and go.

For numbers you can trust, close other apps, keep a laptop plugged in, and don't use the machine during the run.

To try it first, this takes about a minute:

npm run benchmark:build
# mount and string sorting, 300k rows only, 3 runs per grid
BENCH_HEADLESS=1 BENCH_SIZES=300k BENCH_SCENARIOS=mount,sort-string BENCH_RUNS=3 npm run benchmark:run

npm run benchmark:run reuses the last build. Build again after you change the code or the installed versions.

Results

Every run writes two files to benchmark-results/<run id>/:

  • report.md - one table per scenario, with the median and standard deviation of each grid and, for Infinite Table against each of the others, the ratio, its 95% confidence interval, and which grid is better when the difference is significant
  • results.json - every raw sample of every run

The most recent report is also copied to benchmark-results/latest.md. benchmark-results/ is git-ignored.

Compare other versions

The versions that are measured are the ones installed in node_modules. The report records them.

npm install @infinite-table/infinite-react@<version>
npm install @mui/x-data-grid@<version>
npm install ag-grid-community@<version> ag-grid-react@<version>
npm install @tanstack/react-table@<version> @tanstack/react-virtual@<version>

BENCH_HEADLESS=1 npm run benchmark

Keep ag-grid-community and ag-grid-react on the same version.

To measure only some of the grids, name them: BENCH_GRIDS=ag-grid,infinite (mui, ag-grid, tanstack, infinite).

Infinite Table reaches the last of 1,000,000 rows starting with version 10.1.4. Older versions stop before it, and the report says where - see Scroll range.

How the results above are kept up to date

The Benchmark workflow runs on GitHub Actions:

  • every 6 hours it looks on npm for a new version of @infinite-table/infinite-react, @mui/x-data-grid, ag-grid-react or @tanstack/react-table. When there is one, it installs it, runs the whole benchmark and commits the results
  • it can also be started by hand, for any versions of the four: Actions > Benchmark > Run workflow
  • a repository_dispatch event of type new-version starts it right away, for a release pipeline that doesn't want to wait for the schedule

Where the results go:

  • master always has the newest versions: package.json, results/latest (the report and the raw samples) and the charts above
  • a branch for every set of versions that was measured - versions/infinite-<version>_mui-<version>_ag-grid-<version>_tanstack-<version> - with the code, the lockfile and the full results of that run
  • the history table on master has the rows of every one of them, from results/history.json

The hosted runners are shared virtual machines without a GPU, and their CPU can change from one run to the next (the history table says which one it was). So the absolute numbers differ between runs. What the benchmark is after is how the grids relate - every run goes through all of them in turn, so they get the same conditions.

The numbers in the blog post are the ones of the run of 2026-11-12, kept in results/blog-post-2026-11-12.

If a run fails, the workflow opens an issue and stops trying those versions until the issue is closed.

To update the README from a run on your machine: node scripts/update-results.ts <run id>.

Look at the grids

The pages the benchmark measures are ordinary pages you can open and scroll:

npm run benchmark:build
npm run benchmark:serve     # or: npm run dev

Then open localhost:3000 for the list - a page for each grid and size: /benchmark/<grid>-<size>, where the grid is infinite, mui, ag-grid or tanstack and the size is 300k or 1m. If port 3000 is taken, pick another one with npm run benchmark:serve -- -p 4000.

What is compared

Each grid is on its defaults. Only what makes the layouts identical is set:

  • Data: 1,000,000 rows × 20 columns, generated deterministically (data.ts). Every grid imports the same module, and the setup checks a checksum and that all the grids show the same text in the visible cells. Until November 2026 every run also measured 300,000 rows: the grids ranked the same in most results, and scrolling does not depend on the row count, so the runs now measure 1M only - BENCH_SIZES=300k,1m adds 300k to a run.
  • Same row height, header height and column widths.
  • All the rows in one scrollable view.
  • Each page loads only its own grid - its code and its stylesheet.
  • The same body height. The setup measures the scrolling body of every grid and makes the boxes of the shorter ones taller until they match, so all of them render the same number of rows. MUI's footer takes room from its body, and see "License key" below for Infinite Table. With 1M rows the bodies match to within a pixel: there, AG Grid's body only takes odd heights and MUI's only even ones.

What is set for each grid, and why:

  • Infinite Table: nothing else. See InfiniteBenchmark.tsx.
  • MUI X Data Grid: the free DataGrid from @mui/x-data-grid, with the default Material theme. See below, and MuiBenchmark.tsx.
  • AG Grid: the Quartz theme, all Community modules, animateRows={false} (the other grids don't animate rows on sort, and the animation would make "sorted rows visible" ambiguous) and a getRowId (the other grids have a row id too). See AgGridBenchmark.tsx.
  • TanStack Table: see below, and TanStackBenchmark.tsx.

MUI X Data Grid: all the rows on one page

The free edition of MUI X Data Grid always paginates, and by default a page has 100 rows. Two things are set, so it shows the same thing as the other grids:

  • a page size of -1 - the value its documentation gives for "all results". Every row is then on one page, which is virtualized and scrolled through like in the other grids. The pagination footer stays ("1–1,000,000 of 1,000,000").
  • number columns show the value as it is, with a valueFormatter - by default MUI formats numbers for the locale ("100,000.13"), and the setup needs every grid to show the same text.

TanStack Table: a headless library and our markup

TanStack Table has the row model and the sorting, and renders nothing. What the benchmark measures is the combination its documentation recommends for large tables: TanStack Table, TanStack Virtual for the rows and the columns, and plain <table> markup. The page follows the official virtualized-columns example, with the same overscan (5 rows, 3 columns). What we changed:

  • a fixed row height, so nothing is measured while scrolling (the example measures every row, for dynamic heights)
  • no column resizing
  • sortDescFirst: false - by default the first click on a number column sorts descending; in the other grids it sorts ascending
  • data-row-index and data-column-id attributes on the cells, for the measuring code

Keep in mind what is being compared when you read its numbers. The other three are full grids: keyboard navigation, focus, cell and row selection, column menus, resizing, reordering and pinning, accessibility attributes on every cell. This page has none of that, and renders far fewer DOM elements - which is the point of a headless library, and it is also less work on every frame.

Scroll range

Browsers cap the size of an element (about 33.5M px in Chrome), and 1,000,000 rows × 40px is 40M px. A grid has to map its scrollbar onto the rows to show all of them.

  • Infinite Table and AG Grid do, and reach the last row.
  • MUI X Data Grid and TanStack Virtual don't: the element is cut at the browser's limit, and the last row that can be scrolled to is 838,860. The 161,140 rows after it are loaded and sorted, and can't be seen. Their 1M scrolling results are for the part that can be reached; and because their scrollbar is not stretched, the same wheel gesture goes over about 20% fewer rows than in the other two grids.

The report has these numbers for every run, under each size.

Scenarios

Id
mount mount the grid with all rows in memory: time to first rows painted, to settled, heap, DOM
sort-string click a string column header - ascending (cold), then descending
sort-number the same, for a number column
scroll-jump ten programmatic jumps to far-away scroll positions
scroll-vertical a wheel gesture down: frame rate, frame outcomes, main-thread work
scroll-horizontal wheel sweeps across all the columns
correctness-vertical during a very fast vertical scroll: is every cell there, and is it the right one?
correctness-horizontal the same, horizontally
visual-blank-vertical a screencast of a very fast scroll: how many blank rows does the compositor actually show?
updates-low live updates, one at a time: update to rows painted
updates-low-sorted the same, with the rows sorted by the column that changes
updates-low-filtered the same, with the rows filtered on the column that changes
updates-low-grouped the same, with the rows grouped and the changing column summed (Infinite, TanStack)
updates-high a feed of 50 updates a second: lag at the end, update delay, frame rate, main-thread work
updates-high-sorted the same, sorted
updates-high-filtered the same, filtered
updates-high-grouped the same, grouped (Infinite, TanStack)

Live updates

Rows change while the grid shows them - like prices in a trading blotter. An update changes four number fields (salary, bonus, hours, score, by up to ±1%) in new copies of some rows: random rows, plus all the rows in the viewport, so that every update changes what is on screen. Every grid gets the same updates (updates.ts), worked out before anything is measured, and each one is checked on screen: the right rows, with the new values, in the right order.

The grid shows the rows in one of four views, set when it mounts:

  • as they are - in the order of the data
  • sorted by the salary, highest first - the updates change the salaries, so rows move
  • filtered to a salary of at least 115,000, about half of the rows - rows go in and out of the filter
  • grouped by department (10 collapsed groups), with the sum of the salaries of each group in the salary column - the sums change. Only Infinite Table and TanStack Table are measured here: row grouping and aggregation are in the paid versions of MUI X Data Grid (Premium) and AG Grid (Enterprise).

and the updates come in one of two ways:

  • low frequency (updates-low-*): 5 updates of 1,000 random rows each, one at a time - each one 500 ms after the previous one is painted. Measured from sending the update to the first frame that shows it.
  • high frequency (updates-high-*): a feed of 50 updates a second, of 100 random rows each, for 4 seconds. The page hands the grid the updates once per animation frame - all those that arrived since the previous frame, as one update, the way an app buffers the messages of a socket. A grid that keeps the main thread busy gets them later, and more at once. Measured: the lag at the end (from the last update to the frame that shows it), how late the updates get to the grid, and the main-thread work. The frame rate, the gaps between frames and the blocking time come from the trace (the frames the main thread committed, and the part over 50 ms of every task), not from the page: a main thread blocked for seconds gets few rAF callbacks or Long Animation Frame entries to measure with.

Each grid gets the rows the way it documents for changing them:

  • Infinite Table: dataSourceApi.updateDataArray(rows). The views are defaultSortInfo, defaultFilterValue (with showColumnFilters={false}, so the header stays as high as in the other grids), and groupBy with an aggregationReducers sum and collapsed groups.
  • MUI X Data Grid: a new rows array. Its apiRef.current.updateRows takes one row at a time in the free version. The views are its initialState sort and filter models.
  • AG Grid: api.applyTransaction({ update: rows }). The views are its initialState sort and filter models, with the number filter on the salary column.
  • TanStack Table: a new data array. The filtered view adds its column filtering feature, and the grouped view its grouping and aggregation features (only the salary is aggregated, as in the other grid); the other views keep the features of the other scenarios. There is no row expanding, so the groups stay collapsed.

For the two grids that take a new array, making it (a copy of the million rows, with the changed ones in it) is part of what is measured - it is what an app does with them.

String sorting

The string column is lowercase a-z text, and the browser runs as en-US. The four grids don't compare strings the same way by default:

  • Infinite Table uses the order of the browser's locale.
  • MUI X Data Grid uses the order of the browser's locale too (an Intl.Collator).
  • AG Grid compares character codes (<), which puts "Zebra" before "apple".
  • TanStack Table picks its text sorting for this column: it compares the lowercased values by character code.

For lowercase a-z all four give the same order, which the benchmark checks.

Sorting a number column doesn't depend on any of this.

License key

The free MUI X Data Grid, AG Grid Community and TanStack Table need no license key. Infinite Table works without one too, but shows a "Powered by Infinite Table" footer, which takes 24px from the height of its body. Two things keep that from affecting the results:

  • the setup makes the Infinite Table box taller, until the bodies of all the grids have the same height (the report says by how much)
  • the footer sets its own inline styles again every second; the "settled" metric ignores those mutations, as it ignores screen-reader announcements

The results here were measured this way, without a license key - what you get from a fresh clone. If you have a key, copy .env.example to .env.local and set it there to measure the grid without the footer, then build again.

Methodology

  • Production builds only. The spec refuses a development build (BENCH_ALLOW_DEV=1 to try it against next dev anyway).
  • Fresh browser context per run, interleaved: every scenario runs BENCH_WARMUP + BENCH_RUNS times per grid, going through all the grids in each run and changing their order from one run to the next; warmup runs are discarded.
  • Latency from traces, as in js-framework-benchmark: from the input (pointerdown, setState, setting scrollTop) to the end of the first Commit after the DOM shows the expected content.
    • visible - the first and last visible rows/columns show the right content, at the right place
    • settled - the first frame committed after the grid's last DOM mutation. We don't use js-framework-benchmark's "last rAF/timer" rule, because grids schedule debounce timers that do no visible work.
  • Scrolling uses real input: Input.synthesizeScrollGesture (Chrome's input pipeline, threaded scrolling), the same gesture for every grid.
    • frame outcomes from the compositor's PipelineReporter trace events: presented with the main-thread update, presented without it ("partial" - the compositor scrolled what it had), or dropped
    • rAF intervals and Long Animation Frames from the page
  • Correctness probe (correctness-*): after every frame, samples points across the body and checks that the cell there is the one that should be there for the current scroll position - "blank" (no cell) or "wrong" (another row's content, or a cell lagging the scroll). It reads layout, so it runs in its own pass, never together with timing.
  • Screencast (visual-blank-vertical): records what the compositor actually displays during a fast scroll and counts blank rows - this also catches the compositor scrolling ahead of the main thread.
  • Scroll range (setup): browsers cap element sizes, and 1M rows × 40px is more than that. The setup scrolls each grid to the middle and to the end, to report whether the last row is reachable and how the scrollbar maps onto the rows. The probes and jumps use that mapping, so they measure rendering - not mapping differences. See Scroll range.
  • Sandboxed Chromium: the benchmark turns Chromium's sandbox on (Playwright turns it off by default), as in real Chrome. Without it, on macOS, the first hover recompute after a layout change under the mouse blocks the main thread for 30-80ms, once per page. It showed up as one long frame at the start of the first scroll - only for the grid that updates rows under the mouse first - and does not happen in a sandboxed renderer.
  • Fixed display scale: Chromium runs with --force-device-scale-factor=1. The largest element a page can have depends on the scale factor of the display the window is on (about 33.5M px at 1x, 16.7M px at 2x), whatever the emulated deviceScaleFactor. Pinning it gives every grid the same limit on every machine; the setup fails if the grids that reach their last row don't map the scrollbar the same way.
  • Statistics: medians. Infinite Table is compared with each of the other grids: a 95% bootstrap confidence interval of the ratio of medians (Infinite / other), and a grid is only named as better when the interval excludes 1. When the other grid has zeros among its values (0% blank samples, no long frames...), a ratio means nothing - the difference of medians (Infinite − other) is used instead, and its interval has to exclude 0. The other grids are not compared with each other.

Compare the grids, not the absolute numbers - they depend on the machine, and the screencast in particular adds overhead.

Options (env vars)

Variable Default
BENCH_SIZES 1m dataset sizes to run
BENCH_SCENARIOS all comma separated scenario ids, e.g. mount,scroll-jump
BENCH_GRIDS all comma separated grids, at least two of mui, ag-grid, tanstack, infinite
BENCH_RUNS / BENCH_WARMUP 5 / 1 measured / discarded runs per grid per scenario
BENCH_CPU_THROTTLE 1 CDP CPU throttling rate during measurements - 4 is closer to a mid-range laptop
BENCH_HEADLESS off 1 = Chromium's new headless mode (headed by default - closest to real vsync and GPU)
BENCH_NO_SANDBOX off 1 = run Chromium without its sandbox (where the sandbox can't start, e.g. some containers)
BENCH_SCROLL_SPEED / BENCH_SCROLL_DISTANCE 8000 / 24000 wheel gesture (px/s, px) for the smoothness scenarios
BENCH_FAST_SCROLL_SPEED 20000 the fast gesture of the correctness / screencast scenarios
BENCH_LOW_UPDATES / BENCH_LOW_UPDATE_ROWS 5 / 1000 low-frequency updates: how many, and the random rows each one changes
BENCH_LOW_UPDATE_PAUSE 500 ms between an update being painted and the next one
BENCH_HIGH_UPDATE_RATE 50 high-frequency feed: updates a second
BENCH_HIGH_UPDATE_ROWS / BENCH_HIGH_UPDATE_SECONDS 100 / 4 the random rows each update of the feed changes, and how long the feed lasts
BENCH_SAVE_TRACES off 1 = save every trace to benchmark-results/<run id>/traces
BENCH_VERBOSE off 1 = log the last DOM mutations ("settled") and the first wrong samples of the probes
BENCH_RUN_ID ISO date results folder name
BENCH_PORT / BENCH_BASE_URL 5560 / - port of the server the config starts, or an already running server to use instead

Files

File
src/pages/benchmark/<grid>-<size>.tsx the pages that are measured, one for each grid and size
src/benchmark/data.ts the deterministic dataset
src/benchmark/updates.ts the views (sorted, filtered, grouped) and the changes of the live-update scenarios
src/benchmark/<Grid>Benchmark.tsx each grid with its defaults + its DOM adapter (Infinite, MUI, AG Grid, TanStack)
src/benchmark/BenchmarkPage.tsx, harness.ts identical page shell; window.__bench - what the spec calls in the page
src/benchmark/grid-comparison.bench.ts the Playwright spec: scenarios, runs, report
src/benchmark/benchUtils.ts trace parsing, statistics, report
playwright.config.ts 1 worker, no retries, long timeouts, next start on port 5560
next.config.js Next.js is only the bundler and the server; it also reads the installed grid versions
.github/workflows/benchmark.yml runs the benchmark for new versions and publishes the results
scripts/check-versions.mjs which versions to measure, and whether there is anything to do
scripts/update-results.ts a run -> results/, the charts and the results part of this README

The files in src/benchmark are the same as the ones in the Infinite Table repository, under examples/src/benchmark, where the benchmark runs against the grid's source instead of the npm package.

Help us make it fairer

If you find a flaw in the methodology, a setting that unfairly favors one grid, or a scenario that's missing, please open an issue or send a pull request. That goes double for the MUI X, AG Grid and TanStack teams: if there's a configuration you'd recommend for a fair comparison - or a better way to render TanStack Table - we'll gladly add it and run the numbers again.

About

A reproducible benchmark of the Infinite Table, MUI X Data Grid, AG Grid and TanStack Table React DataGrids at 1,000,000 rows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages