{"id":19464047,"url":"https://github.com/ova2/perf-test","last_synced_at":"2026-03-02T12:35:59.947Z","repository":{"id":8338927,"uuid":"9895656","full_name":"ova2/perf-test","owner":"ova2","description":"Perfomance Test JSF standard and PrimeFaces input / select components","archived":false,"fork":false,"pushed_at":"2013-05-06T21:40:08.000Z","size":129,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T03:34:56.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ova2.png","metadata":{"files":{"readme":"README.mediawiki","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-06T20:04:18.000Z","updated_at":"2018-01-17T19:20:34.000Z","dependencies_parsed_at":"2022-08-07T03:00:07.257Z","dependency_job_id":null,"html_url":"https://github.com/ova2/perf-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ova2%2Fperf-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ova2%2Fperf-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ova2%2Fperf-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ova2%2Fperf-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ova2","download_url":"https://codeload.github.com/ova2/perf-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240675439,"owners_count":19839365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T18:13:09.903Z","updated_at":"2026-03-02T12:35:54.900Z","avatar_url":"https://github.com/ova2.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"=== Perfomance Test for JSF standard and PrimeFaces input / select components ===\n\nThe goal is to measure the client-side perfomance of JS script block executions for PrimeFaces \u003ctt\u003ep:inputText\u003c/tt\u003e / \u003ctt\u003ep:selectOneMenu\u003c/tt\u003e.\nThere is no backend logic. For perfomance test, an editable \u003ctt\u003ep:dataTable\u003c/tt\u003e with inputs / selects components within the table cells is used.\nThe table has 25 rows and 16 columns, that means 25 * 16 = 400 cells. Every cell contains either an input or a select component.\nThere are 6 test cases, depending on component's combinations.\n\n* An input can be either an JSF standard \u003ctt\u003eh:inputText\u003c/tt\u003e (without any JS script block) or PrimeFaces' \u003ctt\u003ep:inputText\u003c/tt\u003e (with JS script block execution).\n* A select can be either a JSF standard \u003ctt\u003eh:selectOneMenu\u003c/tt\u003e (without any JS script block) or PrimeFaces' \u003ctt\u003ep:selectOneMenu\u003c/tt\u003e (with JS script block execution).\n\nThe page load speed is measured with the new [https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html Navigation Timing JavaScript API]\nfor accurately measuring performance on the web. The API provides a simple way to get accurate and detailed timing statistics natively.\nIt's available in Internet Explorer 9 and higher, last releases of Google Chrome and Firefox.\n\nThe following function is used to measure and output the time after the current response has been arrived until the window onload event is fired (everything were loaded and executed). \n\n\u003cpre\u003e\n\u003cscript type=\"text/javascript\"\u003e\n    $(window).load(function () {\n        setTimeout(function () {\n            window.performance = window.performance ||\n                                 window.mozPerformance ||\n                                 window.msPerformance ||\n                                 window.webkitPerformance || {};\n            var timing = performance.timing || {};\n\n            var loadTime = timing.loadEventEnd - timing.responseEnd;\n            console.log(loadTime);\n            $(\"#timeOutput\").html(\"Load Time (ms) = \" + loadTime);\n        }, 0);\n    });\n\u003c/script\u003e\n\u003c/pre\u003e\n\nJavaScript is single-threaded, so let's see how sequential script block executions can slow down displaying a web page.\n\n==== Compile and Run Project ====\n\nOpen your console / terminal window and clone the repository with\n\n\u003cpre\u003e\ngit clone git://github.com/ova2/perf-test.git\n\u003c/pre\u003e\n\nThe demo web application is prepared to run with Jetty 8 server. To run it with JSF Mojarra implementation, type in the console / terminal window\n\n\u003cpre\u003e\nmvn jetty:run\n\u003c/pre\u003e\n\nTo run it with JSF MyFaces implementation, type\n\n\u003cpre\u003e\nmvn jetty:run -Pmyfaces\n\u003c/pre\u003e\n\nThis starts Jetty server and the demo app is available under the following URL in a web browser\n\n\u003cpre\u003e\nhttp://localhost:8080/perf-test/\n\u003c/pre\u003e\n\nJetty will continue to run until you stop it with a \u003ctt\u003eCtrl+C\u003c/tt\u003e in the console / terminal window where it is running. Alternative, you can compile the project\n\n\u003cpre\u003e\nmvn clean package\n\u003c/pre\u003e\n\nand deploy the WAR file on every JEE 6 compliant server of your choice.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fova2%2Fperf-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fova2%2Fperf-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fova2%2Fperf-test/lists"}