While rich internet technologies are developing and improving, people expect web apps to provide desktop-like performance and user experience. Since data grids are one of the most important part of enterprise web apps, we have decided to check how quickly the popular JavaScript grids are loaded on a page with a large number of rows and columns.
We have tested four grid components:
- Dojo grid (v.1.7.2)
- jqGrid (v.4.3.2)
- Ext JS grid (v.4.0.7)
- dhtmlxGrid (v.3.0)
For our tests, we created a demo for each grid that initializes a grid on a page with different number of rows and columns. If you want to make sure that the results are objective and check the loading speed by yourself, download the demo here.
Grid with Large Number of Rows
At first, we set up a demo of each grid that has 10 columns and different number of rows (from 100 to 10,000). We tested the grids in IE9 and the latest Google Chrome. The charts below show the time of initialization of the grid on a page in dependence to the number of rows.
Results in IE9:
|
Results in Chrome:
|
Results in IE8:
|
Results in FireFox 11:
|
Results in all browsers for grid with 10,000 rows and 10 columns:
|
According to the tests, dhtmlxGrid has the shortest loading time and loads on the page faster than others. While the number of rows increases, the difference in the loading time becomes more visible.
Grid with Large Number of Columns
This is a less popular scenario but we also tested the grids with large number of columns (the number of rows stays the same – 1,000). The charts display initialization time of each grid in dependence to the number of columns.
Results in IE9:
|
Results in Chrome:
|
Not all grids have stood the test with 1,000 columns. Ext JS grid has failed to load the data and others showed a significant increase of initialization time (that’s why we didn’t include the results for 1,000 columns in the charts).
Although jqGrid was faster in IE9, dhtmlxGrid has won the race in Google Chrome. So now we have a good reason to say that dhtmlxGrid is one of the fastest JavaScript grids on the web. Download dhtmlxGrid, JavaScript datagrid library, and check it by yourself.