{"id":20329380,"url":"https://github.com/ddev/ddev-puppeteer","last_synced_at":"2025-06-12T04:34:57.530Z","repository":{"id":147500303,"uuid":"473219449","full_name":"ddev/ddev-puppeteer","owner":"ddev","description":"Simple Puppeteer script to try to measure DDEV performance","archived":false,"fork":false,"pushed_at":"2023-11-29T17:56:12.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-14T15:17:16.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-03-23T14:16:15.000Z","updated_at":"2023-06-21T16:32:54.000Z","dependencies_parsed_at":"2023-11-29T00:24:58.843Z","dependency_job_id":"3fb51e6f-f792-4036-aca5-ded90108e889","html_url":"https://github.com/ddev/ddev-puppeteer","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/ddev%2Fddev-puppeteer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-puppeteer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-puppeteer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddev%2Fddev-puppeteer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddev","download_url":"https://codeload.github.com/ddev/ddev-puppeteer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241844308,"owners_count":20029615,"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-14T20:10:33.418Z","updated_at":"2025-03-04T12:19:10.666Z","avatar_url":"https://github.com/ddev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddev-puppeteer\n\nSimple Puppeteer script for measuring DDEV performance.\n\nThis tries to use a DDEV Drupal 10 project as a measure of performance using a web install of the `demo_umami` profile.\n\n* To use this, you need Node.js, `npm init \u0026\u0026 npm i puppeteer async`.\n* The project named in `ddev-puppeteer.js` should be a standard Drupal 10 install as per the [DDEV Drupal 10 quickstart](https://ddev.readthedocs.io/en/latest/users/quickstart/#drupal)\n* Edit `site` and `sitedir` in `ddev-puppeteer.js`.\n* Set up the project with Mutagen or Colima or whatever permutation you like.\n* The project should already be running.\n* Run the test with `node ddev-puppeteer.js`.\n\n## Notes\n\n* This is using the Drupal `demo_umami` profile, which takes longer than `standard`.\n* The script resets php-fpm at the beginning to make sure we start without a PHP OPcache. This may or may not be fair.\n* To see what’s happening in the install you can change `puppeteer.launch({headless: true})` to `puppeteer.launch({headless: false})`.\n* The Drush install  is `ddev mysql -e \"DROP DATABASE IF EXISTS db; CREATE DATABASE db;\" \u0026\u0026 ddev exec killall -USR2 php-fpm \u0026\u0026 rm -rf web/sites/default/files/* \u0026\u0026 ddev mutagen sync \u0026\u0026 time ddev drush si demo_umami -y`\n* Links:\n  * Early measurements of performance with Mutagen on [ddev.com](https://ddev.com/ddev-local/supercharge-your-ddev-performance-with-mutagen/).\n  * [Puppeteer quickstart](https://developers.google.com/web/tools/puppeteer/get-started)\n  * [async docs](https://caolan.github.io/async/v3)\n  * [How to use series function in async](https://www.tabnine.com/code/javascript/functions/async/series)\n  * [Useful Puppeteer examples](https://nitayneeman.com/posts/getting-to-know-puppeteer-using-practical-examples/).\n\n\n## Thanks\n\nThanks so much to @froboy and his inspiring measurements in https://gist.github.com/froboy/f237bf62cfde5350c0849c6e9aab0c71\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fddev-puppeteer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddev%2Fddev-puppeteer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddev%2Fddev-puppeteer/lists"}