Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test performance benchmark #38

Draft
wants to merge 15 commits into
base: trunk
Choose a base branch
from
Prev Previous commit
Next Next commit
Check import data
mukeshpanchal27 authored Jan 27, 2025
commit 10f433822a8aa807d2a1bfdab3526600ac55f227
29 changes: 16 additions & 13 deletions .github/workflows/performance-blueprint.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"plugins": [
"woocommerce",
"email-log"
"email-log",
"https://github.com/woocommerce/wc-smooth-generator/releases/latest/download/wc-smooth-generator.zip"
],
"extraLibraries": [
"wp-cli"
@@ -15,19 +16,9 @@
"WP_CACHE": true
}
},
{
"step": "activatePlugin",
"pluginName": "WooCommerce",
"pluginPath": "/wordpress/wp-content/plugins/woocommerce"
},
{
"step": "activatePlugin",
"pluginName": "Email Log",
"pluginPath": "/wordpress/wp-content/plugins/email-log"
},
{
"step": "installTheme",
"themeZipFile": {
"themeData": {
"resource": "wordpress.org/themes",
"slug": "storefront"
},
@@ -39,7 +30,19 @@
},
{
"step": "runPHP",
"code": "<?php\nrequire '/wordpress/wp-load.php';\n\n// Create the 'Vendor' term under 'category' taxonomy\n$term = wp_insert_term('Vendor', 'category');\n\n// Check if the term was created successfully\nif (is_wp_error($term)) {\n echo 'Error creating term: ' . $term->get_error_message();\n} else {\n $term_id = $term['term_id'];\n // Set the term meta for 'vendor_data'\n update_term_meta($term_id, 'vendor_data', json_encode(['email' => '[email protected]']));\n echo 'Term created and meta data set successfully.';\n}\n"
"code": "<?php\nrequire '/wordpress/wp-load.php';\n\n// Create the 'Vendor' term under 'wcpv_product_vendors' taxonomy\n$term = wp_insert_term('Vendor', 'wcpv_product_vendors');\n\n// Check if the term was created successfully\nif (is_wp_error($term)) {\n echo 'Error creating term: ' . $term->get_error_message();\n} else {\n $term_id = $term['term_id'];\n // Set the term meta for 'vendor_data'\n update_term_meta($term_id, 'vendor_data', json_encode(['email' => '[email protected]']));\n echo 'Term created and meta data set successfully.';\n}\n"
},
{
"step": "wp-cli",
"command": "wp wc generate products 50"
},
{
"step": "wp-cli",
"command": "wp wc generate orders 20"
},
{
"step": "wp-cli",
"command": "wp wc generate customers 10"
},
{
"step": "login",
Loading