Add benchmark script for site creation performance (STU-1235)#2467
Closed
ivan-ottinger wants to merge 4 commits intotrunkfrom
Closed
Add benchmark script for site creation performance (STU-1235)#2467ivan-ottinger wants to merge 4 commits intotrunkfrom
ivan-ottinger wants to merge 4 commits intotrunkfrom
Conversation
…ation Introduces a benchmark tool to measure site creation performance: - Compares raw Playground CLI against Studio CLI - Supports both download mode and bundled WordPress files (--use-bundled) - Measures "create only" and "create + start" scenarios - Outputs min/max/avg/median across multiple rounds - Saves results to JSON for cross-platform comparison Usage: cd scripts/benchmark-site-create && npm install && npm run benchmark
- Use .cmd extension for Playground CLI on Windows - Use taskkill instead of negative PID for process cleanup on Windows - Use shell: true instead of detached: true on Windows for proper process handling
Windows paths contain colons (C:\...) which conflict with the --mount-before-install=host:vfs format. Use --mount-dir-before-install with separate arguments on Windows instead.
Calls `studio site delete --path=<siteDir>` after each Studio CLI benchmark round to remove site entries from appdata, preventing orphan entries pointing to deleted temp directories.
c4047db to
2d5876d
Compare
Contributor
Author
|
I have shared the summary of the tests in the related Linear task (STU-1235), will close this PR (and leave the branch in for now - in case we would like to run the tests again). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
Related to STU-1235.
Summary
--use-bundledfor apples-to-apples comparison)Note: Both CLIs are run with the system Node.js, not Electron's bundled Node. This ensures a fair CLI-to-CLI comparison.
Benchmark Results (5 rounds each)
Real-world Comparison
Playground downloads WordPress, Studio uses bundled files
Apples-to-Apples Comparison (
--use-bundled)Both use bundled WordPress files
Key Findings
Usage
Test plan