Vue DataGrid performance comparison: TanStack Table, AG Grid, PrimeVue DataTable, Element Plus Table V2 and Infinite Table
A reproducible benchmark of five Vue 3 DataGrids at 300,000 and 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.
- TanStack Table, which is headless, rendered with TanStack Virtual as in its official virtualization example
- AG Grid Vue (Community)
- PrimeVue DataTable, in its virtual scroller mode
- Element Plus Table V2, the virtualized table of Element Plus
- Infinite Table for Vue
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.
It is the Vue counterpart of the React DataGrid performance comparison: the same data, scenarios, measuring code and statistics, with the Vue grids.
The five are not the same kind of thing, and they don't all do everything the scenarios ask for. Four things to know before reading the numbers - all 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.
- Element Plus Table V2 does not sort. It shows the sort indicator and
tells the page which header was clicked; the page sorts the array. Its
sorting numbers are the browser's
Array.prototype.sortplus the table rendering the result. - PrimeVue DataTable and Element Plus Table V2 don't virtualize columns. Every rendered row has all the 20 cells. The TanStack page, AG Grid and Infinite Table render only the columns in view.
- With 1,000,000 rows, only AG Grid and Infinite Table can scroll to the last row. TanStack Table (with TanStack Virtual), PrimeVue DataTable and Element Plus Table V2 stop near row 838,860.
We make Infinite Table, so read this with healthy suspicion - that is why the whole thing is here for you to run.
TanStack Table 9.3.1 (with TanStack Virtual 3.13.52), AG Grid Vue 36.3.0 (Community), PrimeVue DataTable 4.5.5, Element Plus Table V2 2.14.8 and Infinite Table for Vue 10.2.1 - measured on 2026-11-25, on GitHub Actions, ubuntu-24.04 (Intel(R) Xeon(R) 6975P-C × 4), in Chrome 136.0.7103.25 (headless). Every value is the median of 7 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".
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. Element Plus Table V2 does not sort: its bars are the page sorting the array and the table rendering it - see Element Plus Table V2.
With 1M rows, the last row that can be scrolled to is not the last row of the data in: TanStack Table (row 838,860), PrimeVue DataTable (row 838,881), Element Plus Table V2 (row 838,861). AG Grid and Infinite Table reach the last row. See Scroll range.
The same numbers, as a table - and how Infinite Table compares with each grid
| TanStack Table | AG Grid | PrimeVue DataTable | Element Plus Table V2 | Infinite Table | Infinite Table vs each grid | |
|---|---|---|---|---|---|---|
| Mount - First rows painted, 300k rows | 215 ms | 747 ms | 481 ms | 43.3 ms | 229 ms | vs TanStack Table: TanStack Table 6% lower vs AG Grid: Infinite Table 3.27× lower vs PrimeVue DataTable: Infinite Table 2.1× lower vs Element Plus Table V2: Element Plus Table V2 5.28× lower |
| Mount - Settled (no more DOM changes), 300k rows | 215 ms | 850 ms | 481 ms | 43.3 ms | 238 ms | vs TanStack Table: TanStack Table 10% lower vs AG Grid: Infinite Table 3.57× lower vs PrimeVue DataTable: Infinite Table 2.02× lower vs Element Plus Table V2: Element Plus Table V2 5.5× lower |
| Mount - First rows painted, 1M rows | 614 ms | 2,382 ms | 891 ms | 48.6 ms | 527 ms | vs TanStack Table: Infinite Table 14% lower vs AG Grid: Infinite Table 4.52× lower vs PrimeVue DataTable: Infinite Table 41% lower vs Element Plus Table V2: Element Plus Table V2 10.8× lower |
| Mount - Settled, 1M rows | 614 ms | 2,486 ms | 891 ms | 48.6 ms | 539 ms | vs TanStack Table: Infinite Table 12% lower vs AG Grid: Infinite Table 4.61× lower vs PrimeVue DataTable: Infinite Table 39% lower vs Element Plus Table V2: Element Plus Table V2 11.1× lower |
| Memory - 300k rows | 87.2 MB | 204 MB | 21.6 MB | 2.77 MB | 36.7 MB | vs TanStack Table: Infinite Table 2.37× lower vs AG Grid: Infinite Table 5.55× lower vs PrimeVue DataTable: PrimeVue DataTable 41% lower vs Element Plus Table V2: Element Plus Table V2 13.3× lower |
| Memory - 1M rows | 287 MB | 670 MB | 21.6 MB | 2.77 MB | 90.8 MB | vs TanStack Table: Infinite Table 3.17× lower vs AG Grid: Infinite Table 7.38× lower vs PrimeVue DataTable: PrimeVue DataTable 4.2× lower vs Element Plus Table V2: Element Plus Table V2 32.8× lower |
| Sort, 300k rows - String column, ascending | 998 ms | 1,013 ms | 2,590 ms | 244 ms | 411 ms | vs TanStack Table: Infinite Table 2.43× lower vs AG Grid: Infinite Table 2.46× lower vs PrimeVue DataTable: Infinite Table 6.3× lower vs Element Plus Table V2: Element Plus Table V2 41% lower |
| Sort, 300k rows - String column, descending | 975 ms | 979 ms | 2,624 ms | 250 ms | 403 ms | vs TanStack Table: Infinite Table 2.42× lower vs AG Grid: Infinite Table 2.43× lower vs PrimeVue DataTable: Infinite Table 6.51× lower vs Element Plus Table V2: Element Plus Table V2 38% lower |
| Sort, 300k rows - Number column, ascending | 806 ms | 1,014 ms | 2,296 ms | 171 ms | 231 ms | vs TanStack Table: Infinite Table 3.49× lower vs AG Grid: Infinite Table 4.39× lower vs PrimeVue DataTable: Infinite Table 9.93× lower vs Element Plus Table V2: Element Plus Table V2 26% lower |
| Sort, 300k rows - Number column, descending | 754 ms | 999 ms | 2,306 ms | 178 ms | 210 ms | vs TanStack Table: Infinite Table 3.59× lower vs AG Grid: Infinite Table 4.75× lower vs PrimeVue DataTable: Infinite Table 11× lower vs Element Plus Table V2: Element Plus Table V2 16% lower |
| Sort, 1M rows - String column, ascending | 3,833 ms | 4,140 ms | 9,962 ms | 934 ms | 1,449 ms | vs TanStack Table: Infinite Table 2.65× lower vs AG Grid: Infinite Table 2.86× lower vs PrimeVue DataTable: Infinite Table 6.88× lower vs Element Plus Table V2: Element Plus Table V2 36% lower |
| Sort, 1M rows - String column, descending | 3,767 ms | 4,140 ms | 9,967 ms | 1,001 ms | 1,510 ms | vs TanStack Table: Infinite Table 2.49× lower vs AG Grid: Infinite Table 2.74× lower vs PrimeVue DataTable: Infinite Table 6.6× lower vs Element Plus Table V2: Element Plus Table V2 34% lower |
| Sort, 1M rows - Number column, ascending | 3,356 ms | 4,514 ms | 8,885 ms | 626 ms | 569 ms | vs TanStack Table: Infinite Table 5.9× lower vs AG Grid: Infinite Table 7.94× lower vs PrimeVue DataTable: Infinite Table 15.6× lower vs Element Plus Table V2: Infinite Table 9% lower |
| Sort, 1M rows - Number column, descending | 3,417 ms | 4,489 ms | 9,070 ms | 695 ms | 576 ms | vs TanStack Table: Infinite Table 5.93× lower vs AG Grid: Infinite Table 7.79× lower vs PrimeVue DataTable: Infinite Table 15.7× lower vs Element Plus Table V2: Infinite Table 17% lower |
| Jump to rows painted - 300k rows | 12.2 ms | 23.5 ms | 254 ms | 33.3 ms | 30.5 ms | vs TanStack Table: TanStack Table 2.49× lower vs AG Grid: AG Grid 23% lower vs PrimeVue DataTable: Infinite Table 8.35× lower vs Element Plus Table V2: Infinite Table 8% lower |
| Jump to rows painted - 1M rows | 13.5 ms | 26.9 ms | 262 ms | 32.6 ms | 32 ms | vs TanStack Table: TanStack Table 2.37× lower vs AG Grid: AG Grid 16% lower vs PrimeVue DataTable: Infinite Table 8.17× lower vs Element Plus Table V2: Infinite Table 2% lower |
| Vertical scrolling, frames fully presented - 300k rows | 100% | 100% | 14.2% | 50.1% | 61.6% | vs TanStack Table: TanStack Table 38.4 points higher vs AG Grid: no significant difference vs PrimeVue DataTable: Infinite Table 47.4 points higher vs Element Plus Table V2: Infinite Table 11.5 points higher |
| Vertical scrolling, frames fully presented - 1M rows | 100% | 64.9% | 13.3% | 50% | 80.7% | vs TanStack Table: TanStack Table 19.3 points higher vs AG Grid: Infinite Table 15.7 points higher vs PrimeVue DataTable: Infinite Table 67.4 points higher vs Element Plus Table V2: Infinite Table 30.7 points higher |
| Vertical scrolling, 300k rows, main-thread work - Layout | 70.3 ms | 201 ms | 96 ms | 102 ms | 54.6 ms | vs TanStack Table: Infinite Table 22% lower vs AG Grid: Infinite Table 3.68× lower vs PrimeVue DataTable: Infinite Table 43% lower vs Element Plus Table V2: Infinite Table 46% lower |
| Vertical scrolling, 300k rows, main-thread work - Style recalculation | 35.1 ms | 102 ms | 57.5 ms | 91 ms | 162 ms | vs TanStack Table: TanStack Table 4.61× lower vs AG Grid: AG Grid 37% lower vs PrimeVue DataTable: PrimeVue DataTable 2.81× lower vs Element Plus Table V2: Element Plus Table V2 44% lower |
| Vertical scrolling, 300k rows, main-thread work - All tasks | 770 ms | 1,024 ms | 3,247 ms | 2,023 ms | 1,287 ms | vs TanStack Table: TanStack Table 40% lower vs AG Grid: AG Grid 20% lower vs PrimeVue DataTable: Infinite Table 2.52× lower vs Element Plus Table V2: Infinite Table 36% lower |
| Horizontal scrolling, 300k rows, main-thread work - Layout | 47.2 ms | 66.9 ms | 0 ms | 0 ms | 21.4 ms | vs TanStack Table: Infinite Table 2.2× lower vs AG Grid: Infinite Table 3.13× lower vs PrimeVue DataTable: PrimeVue DataTable 100% lower vs Element Plus Table V2: Element Plus Table V2 100% lower |
| Horizontal scrolling, 300k rows, main-thread work - Style recalculation | 14.4 ms | 33.2 ms | 0 ms | 8.8 ms | 27.9 ms | vs TanStack Table: TanStack Table 48% lower vs AG Grid: Infinite Table 16% lower vs PrimeVue DataTable: PrimeVue DataTable 100% lower vs Element Plus Table V2: Element Plus Table V2 3.18× lower |
| Horizontal scrolling, 300k rows, main-thread work - All tasks | 427 ms | 507 ms | 38.6 ms | 937 ms | 359 ms | vs TanStack Table: Infinite Table 16% lower vs AG Grid: Infinite Table 29% lower vs PrimeVue DataTable: PrimeVue DataTable 9.3× lower vs Element Plus Table V2: Infinite Table 2.61× lower |
| Live updates, 300k rows - Rows as they are | 136 ms | 33.8 ms | 266 ms | 14.8 ms | 99.7 ms | vs TanStack Table: Infinite Table 27% lower vs AG Grid: AG Grid 2.95× lower vs PrimeVue DataTable: Infinite Table 2.67× lower vs Element Plus Table V2: Element Plus Table V2 6.73× lower |
| Live updates, 300k rows - Sorted by the salary, which the updates change | 833 ms | 1,062 ms | 2,075 ms | 161 ms | 160 ms | vs TanStack Table: Infinite Table 5.22× lower vs AG Grid: Infinite Table 6.65× lower vs PrimeVue DataTable: Infinite Table 13× lower vs Element Plus Table V2: no significant difference |
| Live updates, 300k rows - Filtered on the salary | 301 ms | 77.9 ms | 242 ms | 24.3 ms | 93.1 ms | vs TanStack Table: Infinite Table 3.23× lower vs AG Grid: AG Grid 16% lower vs PrimeVue DataTable: Infinite Table 2.6× lower vs Element Plus Table V2: Element Plus Table V2 3.83× lower |
| Live updates, 300k rows - Grouped by department, salaries summed | 455 ms | – | – | – | 223 ms | vs TanStack Table: Infinite Table 2.04× lower |
| A feed of 50 updates a second, 300k rows, lag at the end - Rows as they are | 246 ms | 34.1 ms | 408 ms | 24.3 ms | 151 ms | vs TanStack Table: no significant difference vs AG Grid: AG Grid 4.43× lower vs PrimeVue DataTable: Infinite Table 2.7× lower vs Element Plus Table V2: Element Plus Table V2 6.22× lower |
| A feed of 50 updates a second, 300k rows, lag at the end - Sorted by the salary, which the updates change | 1,686 ms | 2,510 ms | 2,899 ms | 275 ms | 216 ms | vs TanStack Table: Infinite Table 7.81× lower vs AG Grid: Infinite Table 11.6× lower vs PrimeVue DataTable: Infinite Table 13.4× lower vs Element Plus Table V2: Infinite Table 22% lower |
| A feed of 50 updates a second, 300k rows, lag at the end - Filtered on the salary | 493 ms | 121 ms | 275 ms | 34.4 ms | 149 ms | vs TanStack Table: Infinite Table 3.3× lower vs AG Grid: no significant difference vs PrimeVue DataTable: Infinite Table 46% lower vs Element Plus Table V2: Element Plus Table V2 4.35× lower |
| A feed of 50 updates a second, 300k rows, lag at the end - Grouped by department, salaries summed | 917 ms | – | – | – | 482 ms | vs TanStack Table: Infinite Table 47% lower |
| Live updates, 1M rows - Rows as they are | 463 ms | 124 ms | 684 ms | 18.1 ms | 366 ms | vs TanStack Table: Infinite Table 21% lower vs AG Grid: AG Grid 2.96× lower vs PrimeVue DataTable: Infinite Table 47% lower vs Element Plus Table V2: Element Plus Table V2 20.2× lower |
| Live updates, 1M rows - Sorted by the salary, which the updates change | 4,077 ms | 5,611 ms | 8,962 ms | 671 ms | 536 ms | vs TanStack Table: Infinite Table 7.6× lower vs AG Grid: Infinite Table 10.5× lower vs PrimeVue DataTable: Infinite Table 16.7× lower vs Element Plus Table V2: Infinite Table 20% lower |
| Live updates, 1M rows - Filtered on the salary | 1,472 ms | 280 ms | 568 ms | 46.2 ms | 310 ms | vs TanStack Table: Infinite Table 4.74× lower vs AG Grid: AG Grid 10% lower vs PrimeVue DataTable: Infinite Table 45% lower vs Element Plus Table V2: Element Plus Table V2 6.72× lower |
| Live updates, 1M rows - Grouped by department, salaries summed | 1,850 ms | – | – | – | 813 ms | vs TanStack Table: Infinite Table 2.27× lower |
| A feed of 50 updates a second, 1M rows, lag at the end - Rows as they are | 699 ms | 174 ms | 1,175 ms | 27.6 ms | 558 ms | vs TanStack Table: no significant difference vs AG Grid: AG Grid 3.2× lower vs PrimeVue DataTable: Infinite Table 2.1× lower vs Element Plus Table V2: Element Plus Table V2 20.2× lower |
| A feed of 50 updates a second, 1M rows, lag at the end - Sorted by the salary, which the updates change | 5,262 ms | 7,669 ms | 15,156 ms | 1,228 ms | 984 ms | vs TanStack Table: Infinite Table 5.35× lower vs AG Grid: Infinite Table 7.8× lower vs PrimeVue DataTable: Infinite Table 15.4× lower vs Element Plus Table V2: Infinite Table 20% lower |
| A feed of 50 updates a second, 1M rows, lag at the end - Filtered on the salary | 1,224 ms | 430 ms | 774 ms | 56.5 ms | 422 ms | vs TanStack Table: Infinite Table 2.9× lower vs AG Grid: no significant difference vs PrimeVue DataTable: Infinite Table 46% lower vs Element Plus Table V2: Element Plus Table V2 7.46× lower |
| A feed of 50 updates a second, 1M rows, lag at the end - Grouped by department, salaries summed | 2,063 ms | – | – | – | 1,789 ms | vs TanStack Table: Infinite Table 13% lower |
| A feed of 50 updates a second, 1M rows, frame rate - Rows as they are | 1.71 fps | 7.54 fps | 1.16 fps | 57.1 fps | 2.4 fps | vs TanStack Table: Infinite Table 41% higher vs AG Grid: AG Grid 3.14× higher vs PrimeVue DataTable: Infinite Table 2.06× higher vs Element Plus Table V2: Element Plus Table V2 23.8× higher |
| A feed of 50 updates a second, 1M rows, frame rate - Sorted by the salary, which the updates change | 0.12 fps | 0.09 fps | 0.05 fps | 1.15 fps | 1.61 fps | vs TanStack Table: Infinite Table 13.3× higher vs AG Grid: Infinite Table 18.8× higher vs PrimeVue DataTable: Infinite Table 30.8× higher vs Element Plus Table V2: Infinite Table 40% higher |
| A feed of 50 updates a second, 1M rows, frame rate - Filtered on the salary | 0.58 fps | 3.37 fps | 1.47 fps | 23.8 fps | 3.12 fps | vs TanStack Table: Infinite Table 5.41× higher vs AG Grid: no significant difference vs PrimeVue DataTable: Infinite Table 2.12× higher vs Element Plus Table V2: Element Plus Table V2 7.61× higher |
| A feed of 50 updates a second, 1M rows, frame rate - Grouped by department, salaries summed | 0.33 fps | – | – | – | 1.04 fps | vs TanStack Table: Infinite Table 3.13× higher |
| A feed of 50 updates a second, 1M rows, main-thread work - Rows as they are | 4,680 ms | 4,155 ms | 5,156 ms | 2,663 ms | 4,539 ms | vs TanStack Table: no significant difference vs AG Grid: AG Grid 8% lower vs PrimeVue DataTable: Infinite Table 12% lower vs Element Plus Table V2: Element Plus Table V2 41% lower |
| A feed of 50 updates a second, 1M rows, main-thread work - Sorted by the salary, which the updates change | 9,243 ms | 11,652 ms | 19,161 ms | 5,209 ms | 4,968 ms | vs TanStack Table: Infinite Table 46% lower vs AG Grid: Infinite Table 2.35× lower vs PrimeVue DataTable: Infinite Table 3.86× lower vs Element Plus Table V2: Infinite Table 5% lower |
| A feed of 50 updates a second, 1M rows, main-thread work - Filtered on the salary | 5,206 ms | 4,411 ms | 4,755 ms | 4,030 ms | 4,403 ms | vs TanStack Table: Infinite Table 15% lower vs AG Grid: no significant difference vs PrimeVue DataTable: Infinite Table 7% lower vs Element Plus Table V2: Element Plus Table V2 8% lower |
| A feed of 50 updates a second, 1M rows, main-thread work - Grouped by department, salaries summed | 6,044 ms | – | – | – | 5,780 ms | vs TanStack Table: Infinite Table 4% lower |
Every metric of every scenario, with standard deviations and confidence intervals: full report · raw samples.
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 300k | Horizontal scroll work 300k | Update sorted 1M | Feed lag sorted 1M |
|---|---|---|---|---|---|---|---|---|---|
| 2026-11-25 GitHub Actions, ubuntu-24.04 · Intel(R) Xeon(R) 6975P-C × 4 branch |
TanStack Table 9.3.1 | 614 | 3,833 | 3,356 | 287 | 770 | 427 | 4,077 | 5,262 |
| AG Grid 36.3.0 | 2,382 | 4,140 | 4,514 | 670 | 1,024 | 507 | 5,611 | 7,669 | |
| PrimeVue DataTable 4.5.5 | 891 | 9,962 | 8,885 | 21.6 | 3,247 | 38.6 | 8,962 | 15,156 | |
| Element Plus Table V2 2.14.8 | 48.6 | 934 | 626 | 2.77 | 2,023 | 937 | 671 | 1,228 | |
| Infinite Table 10.2.1 | 527 | 1,449 | 569 | 90.8 | 1,287 | 359 | 536 | 984 | |
| 2026-11-17 GitHub Actions, ubuntu-24.04 · AMD EPYC 9V45 96-Core Processor × 4 branch |
TanStack Table 9.3.1 | 512 | 3,520 | 3,446 | 287 | 811 | 416 | – | – |
| AG Grid 36.3.0 | 2,221 | 4,250 | 4,171 | 670 | 1,155 | 509 | – | – | |
| PrimeVue DataTable 4.5.5 | 731 | 8,643 | 8,133 | 21.7 | 3,155 | 27.2 | – | – | |
| Element Plus Table V2 2.14.8 | 41.5 | 920 | 653 | 2.77 | 2,233 | 992 | – | – | |
| Infinite Table 10.2.0 | 488 | 1,540 | 1,339 | 90.8 | 1,490 | 350 | – | – | |
| 2026-11-17 GitHub Actions, ubuntu-24.04 · AMD EPYC 9V74 80-Core Processor × 2 branch |
TanStack Table 9.3.1 | 936 | 4,292 | 3,487 | 287 | 1,083 | 565 | – | – |
| AG Grid 36.3.0 | 3,147 | 3,950 | 3,866 | 670 | 1,388 | 700 | – | – | |
| PrimeVue DataTable 5.0.5 | 610 | 10,592 | 8,536 | 22 | 3,213 | 33.6 | – | – | |
| Element Plus Table V2 2.14.8 | 74 | 1,003 | 649 | 2.77 | 2,730 | 1,286 | – | – | |
| Infinite Table 10.1.5 | 614 | 1,894 | 1,427 | 90.7 | 1,991 | 526 | – | – | |
| 2026-11-17 GitHub Actions, ubuntu-24.04 · AMD EPYC 7763 64-Core Processor × 2 branch |
TanStack Table 9.3.1 | 1,166 | 4,693 | 3,866 | 287 | 1,329 | 659 | – | – |
| AG Grid 36.3.0 | 3,828 | 3,992 | 3,997 | 670 | 1,736 | 815 | – | – | |
| PrimeVue DataTable 4.5.5 | 1,474 | 14,191 | 11,704 | 21.6 | 3,686 | 31.3 | – | – | |
| Element Plus Table V2 2.14.8 | 95.2 | 1,157 | 761 | 2.77 | 2,989 | 1,666 | – | – | |
| Infinite Table 10.1.5 | 732 | 2,202 | 1,572 | 90.7 | 2,442 | 656 | – | – |
You need git and Node.js 20.19 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/vue-datagrid-performance-comparison.git
cd vue-datagrid-performance-comparison
npm install
npx playwright install chromium
# production build, then every scenario at 300k and 1M rows
BENCH_HEADLESS=1 npm run benchmarkA full run is 17 scenarios × 2 sizes × 5 grids × 8 runs (the 2 grouped ones
with 2 grids): about three and a half hours on a GitHub-hosted runner. 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 a few minutes:
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:runnpm run benchmark:run reuses the last build. Build again after you change
the code or the installed versions.
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 significantresults.json- every raw sample of every run
The most recent report is also copied to benchmark-results/latest.md.
benchmark-results/ is git-ignored.
The versions that are measured are the ones installed in node_modules. The
report records them.
npm install @tanstack/vue-table@<version> @tanstack/vue-virtual@<version>
npm install ag-grid-community@<version> ag-grid-vue3@<version>
# PrimeVue 4 goes with @primeuix/themes 2, PrimeVue 5 with @primeuix/themes 3
npm install primevue@<version> @primeuix/themes@<version>
npm install element-plus@<version>
npm install @infinite-table/infinite-vue@<version>
BENCH_HEADLESS=1 npm run benchmarkKeep ag-grid-community and ag-grid-vue3 on the same version.
To measure only some of the grids, name them: BENCH_GRIDS=tanstack,infinite
(tanstack, ag-grid, primevue, element-plus, infinite).
The Benchmark workflow runs on GitHub Actions:
- every 6 hours it looks on npm for a new version of
@tanstack/vue-table,ag-grid-vue3,primevue(4.x only),element-plusor@infinite-table/infinite-vue. 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 five: Actions > Benchmark > Run workflow
- a
repository_dispatchevent of typenew-versionstarts it right away, for a release pipeline that doesn't want to wait for the schedule
Where the results go:
masteralways 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/ag-grid-<version>_tanstack-<version>_primevue-<version>_element-plus-<version>_infinite-<version>- with the code, the lockfile and the full results of that run - the history table on
masterhas the rows of every one of them, fromresults/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.
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>.
The pages the benchmark measures are ordinary pages you can open and scroll:
npm run benchmark:build
npm run benchmark:serve # or: npm run devThen open localhost:4173 (npm run dev:
localhost:5173) for the list - a page for each grid
and size: /benchmark/<grid>-<size>, where the grid is tanstack, ag-grid,
primevue, element-plus or infinite and the size is 300k or 1m. If
the port is taken, pick another one with
npm run benchmark:serve -- --port 4000.
Each grid is on its defaults. Only what makes the layouts identical is set:
- Data: 300,000 and 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. - The rows are plain objects. The page keeps the array in a
shallowRefand gives every grid the same, non-reactive array - arefwould have Vue wrap each of the rows in a reactive proxy, in every grid. - Same row height, header height and column widths: 40px, 40px and 150px.
- 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 (to within a pixel), so all of them render the same number of rows. The grids differ by the few pixels of their borders; the report says by how much.
What is set for each grid, and why:
- TanStack Table: see below, and
TanStackGrid.vue. - 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 agetRowId(the other grids have a row id too). The rows are given through therowDataprop, as in its documentation;ag-grid-vue3then makes its own copy of rows that are plain objects, to detach them from Vue's reactivity - that copy is part of its mount time and of its memory. SeeAgGridBenchmark.vue. - PrimeVue DataTable: see below, and
PrimeVueGrid.vue. - Element Plus Table V2: see below, and
ElementPlusGrid.vue. - Infinite Table: nothing else. See
InfiniteBenchmark.vue.
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 Vue
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, and no column visibility feature
sortDescFirst: false- by default the first click on a number column sorts descending; in the other grids it sorts ascendingdata-row-indexanddata-column-idattributes on the cells, for the measuring code
Keep in mind what is being compared when you read its numbers. This page has no keyboard navigation, focus handling, selection, column menus, resizing, reordering or pinning, and renders fewer DOM elements than any of the others - which is the point of a headless library, and it is also less work on every frame.
DataTable renders every row unless its virtual scroller is turned on. The
page follows the "Virtual Scroll" example of its
documentation:
scrollable,scrollHeight="flex"andvirtualScrollerOptions: { itemSize: 40 }- the item size is the row height- the Aura theme preset (
@primeuix/themes), the one its documentation starts with - the table has
table-layout: fixedand the width of all the columns, and the cells have a height of 40px and no vertical padding, so a row is exactly 40px high
It does not virtualize columns. Its documentation says the virtual
scroller of DataTable supports the vertical orientation only, and every
rendered row has all the 20 cells.
The benchmark measures PrimeVue 4, the last MIT-licensed major version. PrimeVue 5 asks for a license key - see License keys.
Table V2 is the virtualized table of Element Plus. It is a smaller component than a grid: it has fixed columns, custom cell renderers and expandable rows, and leaves the rest to the page. What is set, and what the page does:
fixed, so the columns keep their widths and the table scrolls horizontally (by default the columns shrink to fit the width)widthandheightin px, which it requires- sorting is done by the page. Table V2 draws the sort indicator and emits
column-sortwhen a sortable header is clicked; it does not reorder the rows. As in the "Sortable" example of its documentation, the page keeps the sort state and gives the table a sorted copy of the array:Array.prototype.sortwith a comparator that uses<and>on the values of the column. So for this table the sorting scenarios measure the browser's sort and the table rendering the new array - not a sorting implementation of the table, which the other four have (TanStack Table's is in its row model). - a
data-row-indexattribute on the rows (row-props), for the measuring code
It does not virtualize columns either: every rendered row has all the 20 cells.
It scrolls on the main thread. Its body has overflow: hidden: the table
listens to the wheel events, sets the scroll position itself and draws its own
scrollbars. The other four scroll a native scroll container, which the
browser's compositor can move before the grid has rendered the new rows. Keep
it in mind for the "frames fully presented" metric: a frame presented without
the main thread's update shows the content scrolled (maybe with rows missing)
in the other four, and shows no movement in a table that scrolls itself. The
correctness and screencast scenarios say what is on screen during a scroll.
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.
- AG Grid and Infinite Table do, and reach the last row.
- TanStack Virtual, PrimeVue DataTable and Element Plus Table V2 don't: the element is cut at the browser's limit, and the last row that can be scrolled to is near row 838,860. The rows after it - about 161,000 - 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.
| 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 (TanStack, Infinite) |
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 (TanStack, Infinite) |
Every grid runs every scenario at both sizes, except the grouped ones - see 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 TanStack Table and Infinite Table are measured here: AG Grid has row grouping and aggregation in Enterprise, PrimeVue DataTable groups rows for display but leaves the aggregations to the page, and Element Plus Table V2 has no grouping.
and the updates come in one of two ways:
- low frequency (
updates-low-*): 10 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:
- TanStack Table: a new
dataarray (in ashallowRef). 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. - AG Grid:
api.applyTransaction({ update: rows }). The views are itsinitialStatesort and filter models, with the number filter on the salary column. - PrimeVue DataTable: a new
valuearray. The views are itssortField/sortOrderandfiltersprops (with no filter UI in the header). - Element Plus Table V2: a new
dataarray. It does not sort or filter, so in the sorted and filtered views the page sorts and filters the rows - again on every update, as it does when a header is clicked. - Infinite Table:
dataSourceApi.updateDataArray(rows). The views aredefaultSortInfo,defaultFilterValue(withshowColumnFilters: false, so the header stays as high as in the other grids), andgroupBywith anaggregationReducerssum and collapsed groups.
For the 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.
The string column is lowercase a-z text, and the browser runs as en-US. The
five don't compare strings the same way by default:
- TanStack Table picks its
textsorting for this column: it compares the lowercased values by character code. - AG Grid compares character codes (
<), which puts "Zebra" before "apple". - PrimeVue DataTable uses the order of the browser's locale (an
Intl.Collator, with thenumericoption). - Element Plus Table V2 does not sort - the page compares character codes
(
<), see above. - Infinite Table uses the order of the browser's locale
(
localeCompare).
For lowercase a-z all five give the same order, which the benchmark checks.
Sorting a number column doesn't depend on any of this.
TanStack Table, AG Grid Community and Element Plus need no license key, and Infinite Table for Vue shows nothing different without one.
PrimeVue is measured at its newest 4.x version (the v4-stable tag on npm),
which is MIT-licensed and needs no key. PrimeVue 5 is distributed under the
PrimeUI license, which asks for a license key (there is a free Community
license for those who qualify - see its
licenses). Without a key, PrimeVue 5 logs
"PrimeUI license is not configured" and shows an "Invalid PrimeUI License"
badge in the bottom-right corner of the page, so the benchmark doesn't use it.
To measure PrimeVue 5 with your own key, install primevue@5 and
@primeuix/themes@3, set the key as the PrimeVue documentation says, in
primevue.ts, and build again. The scheduled
runs only look for new 4.x versions.
- Production builds only. The spec refuses a development build
(
BENCH_ALLOW_DEV=1to try it againstnpm run devanyway). - Fresh browser context per run, interleaved: every scenario runs
BENCH_WARMUP+BENCH_RUNStimes 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, the state change that mounts the grid, setting
scrollTop) to the end of the firstCommitafter 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
PipelineReportertrace 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
- frame outcomes from the compositor's
- 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 emulateddeviceScaleFactor. 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. - Main-thread work: from Chrome's
Performance.getMetrics- layout, style recalculation, and all tasks. The React benchmark also reports "scripting" (ScriptDuration); this one doesn't, because that metric does not count the JavaScript that runs in microtasks, and Vue renders in a microtask. A grid that renders through Vue would show almost no scripting, and one that renders in its own event handlers would show all of it. "All tasks" includes the scripting of every grid. - 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.
| Variable | Default | |
|---|---|---|
BENCH_SIZES |
300k,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 tanstack, ag-grid, primevue, element-plus, infinite |
BENCH_RUNS / BENCH_WARMUP |
7 / 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 |
10 / 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 |
5570 / - |
port of the server the config starts, or an already running server to use instead |
| File | |
|---|---|
src/pages/benchmark/<grid>-<size>.ts |
the pages that are measured, one for each grid and size |
src/main.ts |
loads the page of the URL - and only that page |
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.vue |
each grid's page: its DOM adapter + the grid (AG Grid and Infinite Table have it inline) |
src/benchmark/<Grid>Grid.vue |
the TanStack, PrimeVue and Element Plus tables |
src/benchmark/BenchmarkPage.vue, 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, vite preview on port 5570 |
vite.config.mts |
Vite 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 |
data.ts, harness.ts, benchUtils.ts, the spec and the results script are
the ones of the
React benchmark,
with the list of grids changed - the two can be compared file by file.
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 TanStack, AG Grid, PrimeVue and Element Plus teams: if there's a configuration you'd recommend for a fair comparison - or a better way to render TanStack Table, or to sort Element Plus Table V2 - we'll gladly add it and run the numbers again.