{"id":19675662,"url":"https://github.com/kyle-west/perf-test","last_synced_at":"2025-02-27T05:41:15.907Z","repository":{"id":40927941,"uuid":"278202993","full_name":"kyle-west/perf-test","owner":"kyle-west","description":":fire: CLI to test performance page load trials on Chromium, Firefox, and WebKit.","archived":false,"fork":false,"pushed_at":"2023-10-03T02:44:02.000Z","size":57,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T06:45:49.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@kyle-west/perf-test","language":"JavaScript","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/kyle-west.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-08T22:00:21.000Z","updated_at":"2021-06-07T15:01:22.000Z","dependencies_parsed_at":"2024-11-11T17:28:22.611Z","dependency_job_id":"1c826fb7-f14e-4676-adcc-ca68f98f7d34","html_url":"https://github.com/kyle-west/perf-test","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"0e4806676d6e36c255458526af93a958a498aee9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-west%2Fperf-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-west%2Fperf-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-west%2Fperf-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyle-west%2Fperf-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyle-west","download_url":"https://codeload.github.com/kyle-west/perf-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240985443,"owners_count":19889087,"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-11T17:25:26.472Z","updated_at":"2025-02-27T05:41:15.890Z","avatar_url":"https://github.com/kyle-west.png","language":"JavaScript","readme":"# Web Page Load Performance Tester\n\nCLI to test performance page load trials on Chromium, Firefox, and WebKit.\n\nUses the beautiful [playwright](https://github.com/microsoft/playwright) package underneath.\n\n_Note: This package is still in pre-release and subject to possible change._\n\n## Install\n\nInstall globally using NPM.\n\n```sh\nnpm install -g @kyle-west/perf-test\n```\n\n## Usage\n\nThe `perf` CLI simply needs a URL to test against, and a count for the number of trials to run (defaults to 3).\n\n```sh\nperf \u003curl\u003e [\u003cnumber of trials\u003e]\n```\n\n### Example\n\nRunning: `perf https://github.com/kyle-west 3` will test 3 page load trials of loading github.com. It will output something of the following:\n\n```\nTime Trials for https://github.com/kyle-west on Thu Jul 09 2020\n\n\nTime Trials for Chromium Browser\n┌─────────┬─────────────┬────────────────┬──────────────────────────┬──────────────┐\n│ (index) │ responseEnd │ domInteractive │ domContentLoadedEventEnd │ loadEventEnd │\n├─────────┼─────────────┼────────────────┼──────────────────────────┼──────────────┤\n│    0    │    2269     │      2420      │           2420           │     2772     │\n│    1    │     388     │      553       │           554            │     891      │\n│    2    │     372     │      675       │           675            │     841      │\n└─────────┴─────────────┴────────────────┴──────────────────────────┴──────────────┘\nChromium Averages\n┌──────────────────────────┬────────────────────┐\n│         (index)          │       Values       │\n├──────────────────────────┼────────────────────┤\n│       responseEnd        │ 1009.6666666666666 │\n│      domInteractive      │        1216        │\n│ domContentLoadedEventEnd │ 1216.3333333333333 │\n│       loadEventEnd       │ 1501.3333333333333 │\n└──────────────────────────┴────────────────────┘\n\n\nTime Trials for Firefox Browser\n┌─────────┬─────────────┬────────────────┬──────────────────────────┬──────────────┐\n│ (index) │ responseEnd │ domInteractive │ domContentLoadedEventEnd │ loadEventEnd │\n├─────────┼─────────────┼────────────────┼──────────────────────────┼──────────────┤\n│    0    │     532     │      906       │           910            │     1096     │\n│    1    │     542     │      916       │           920            │     1105     │\n│    2    │     546     │      920       │           947            │     1129     │\n└─────────┴─────────────┴────────────────┴──────────────────────────┴──────────────┘\nFirefox Averages\n┌──────────────────────────┬───────────────────┐\n│         (index)          │      Values       │\n├──────────────────────────┼───────────────────┤\n│       responseEnd        │        540        │\n│      domInteractive      │        914        │\n│ domContentLoadedEventEnd │ 925.6666666666666 │\n│       loadEventEnd       │       1110        │\n└──────────────────────────┴───────────────────┘\n\n\nTime Trials for WebKit Browser\n┌─────────┬─────────────┬────────────────┬──────────────────────────┬──────────────┐\n│ (index) │ responseEnd │ domInteractive │ domContentLoadedEventEnd │ loadEventEnd │\n├─────────┼─────────────┼────────────────┼──────────────────────────┼──────────────┤\n│    0    │     305     │      502       │           502            │     828      │\n│    1    │     315     │      529       │           529            │     846      │\n│    2    │     304     │      497       │           498            │     819      │\n└─────────┴─────────────┴────────────────┴──────────────────────────┴──────────────┘\nWebKit Averages\n┌──────────────────────────┬───────────────────┐\n│         (index)          │      Values       │\n├──────────────────────────┼───────────────────┤\n│       responseEnd        │        308        │\n│      domInteractive      │ 509.3333333333333 │\n│ domContentLoadedEventEnd │ 509.6666666666667 │\n│       loadEventEnd       │        831        │\n└──────────────────────────┴───────────────────┘\n```\n\n### Run a script\n\n```sh\nperf --script \u003cfilename\u003e [--engine \u003cchromium|firefox|webkit\u003e]\n```\n\nScripts must be modules of the form:\n\n```js\nmodule.exports = async () =\u003e {\n  // page, browser, engine, engineName, context available globally\n  await page.goto(\"https://google.com\")\n}\n```\n\n### Record Video\n\nInclude the `--record-video` in the arguments list to save a local file. _Note this feature only works in script mode for Chromium browsers_\n\n```sh\nperf --script \u003cfilename\u003e --record-video \u003cvideo-name\u003e\n```\n\nFile will be saved to `\u003cvideo-name\u003e.mp4`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyle-west%2Fperf-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyle-west%2Fperf-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyle-west%2Fperf-test/lists"}