![]() ![]() Running on Windows 7 and Firefox 20.0.1 I could only see that the table with p:inputText needs ca. If we only test h:inputText and p:inputText, the difference is marginal. JavaScript is single-threaded, so let's see how sequential script block executions can slow down displaying a web page. The code to measure the time after the current response has been arrived until the window onload event is fired is shown on the GitHub. The Navigation Timing JavaScript API is available in Internet Explorer 9 and higher, last versions of Google Chrome and Firefox. It's more precise than using JS Date object. The API provides a simple way to get accurate and detailed timing statistics. The page load speed is measured with the new Navigation Timing JavaScript API for accurately measuring performance on the web. ![]() Simple clone or download it and run with built-in Maven Jetty plugin. The entire test project is available on GitHub. Standard h:inputText and h:selectOneMenu don't have JS script blocks, so it is interesting to see what for impact JS widgets have. Every cell contains either an input or a select component. The table has 25 rows and 16 columns, that means 25 * 16 = 400 cells. We want to test an editable p:dataTable with inputs / selects components in table cells. What do we want to test? The goal is to measure the client-side perfomance (without backend logic) of JS script block executions for PrimeFaces p:inputText / p:selectOneMenu. This is a neutral analyse, without to blame any library or any person. We will analyse the perfomance of editable JSF standard components, sometimes called "legacy", and modern PrimeFaces components with rich JavaScript widgets. I would state, even more than on the server-side. Strange, because on the client-side there is much room for improvements. Everybody optimizes Java code, but it seems nobody try to optimize the JavaScript code. This blog post was originated due to performance issues in one big web application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |