Performance audits
Measure how quickly the same pages answer on two hosts, such as a site where it is now and the same site on Corefinity.
Before you start
- Any user of your organisation can create, run, change and delete its audits.
- Each URL starts
http://orhttps://. For a site behind a login prompt, have its username and password ready.
Create an audit
Open Performance Audits
Go to Tools › Performance Audits and choose Create performance audit.
Say what to measure
Enter a Name, then give each host an Environment name and its URL under Domain, and each page a Title and Path under Page Types. Choose a Server Location, then Create Performance Audit.
The audit opens, ready to run.
| Field | What it does |
|---|---|
| Domain | A host to measure. Up to 10 rows, each a row of the results. |
| HTTP Username, HTTP Password | Open a site that asks for a login. They are kept for later runs. |
| Page Types | A page to load, its Path added to every URL. Up to 20 rows. |
| Check Cache | Also measures the page a second time, served from cache. |
| Number Of Requests | How many times each page is loaded, from 1 to 20. The result is the average. |
| Server Location | The place the pages are requested from. |
Run it and read the results
Run the audit
Open the audit and choose Refresh All under Performance Audit Result. Each cell fills in as its page finishes.
- Times are in milliseconds, and lower is better. Performance Difference compares the rows as a percentage.
- A cell's colour is the answer the page gave: green for 2xx, yellow for 3xx, orange for 4xx and red for 5xx.
- The arrow in a cell measures that page again. Not run gives the reason under it.
- Copy Table copies the results, and Download Log saves every request that was made.
To change the hosts or pages, choose the pencil at the top of the audit, then run it again.
Automate this
Creates an audit and starts its first run: each page of each environment is loaded number_of_requests times from the server location, uncached and, where check_cache is set, cached as well.
curl -X POST https://manage.corefinity.com/api/performance-audits \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"domains": [
{
"environment": "Current host",
"url": "https://old.harbourandfinch.example.org"
},
{
"environment": "Corefinity",
"http_password": "made-up-preview-password",
"http_username": "preview",
"url": "https://harbourandfinch-example-com.northwind.cfstack.example.net"
}
],
"name": "Shop audit",
"number_of_requests": 5,
"page_types": [
{
"check_cache": true,
"path": "/",
"title": "Home"
},
{
"path": "/shop/",
"title": "Category"
}
]
}'Your assistant calls corestack_company_performance_audit_request.
{
"name": "corestack_company_performance_audit_request",
"arguments": {
"name": "Before and after the move",
"domains": [
{"environment": "Current host", "url": "https://www.example.com"},
{"environment": "Corefinity", "url": "https://example-com.cfstack.io"}
],
"page_types": [
{"title": "Home", "path": "/", "check_cache": true},
{"title": "Category", "path": "/shop/"}
],
"number_of_requests": 5
}
}