Skip to content

Instantly share code, notes, and snippets.

@ajardin
Created December 30, 2017 22:54
Show Gist options
  • Save ajardin/f68b7bf433426e10a21a89e904415b03 to your computer and use it in GitHub Desktop.
Save ajardin/f68b7bf433426e10a21a89e904415b03 to your computer and use it in GitHub Desktop.
Blackfire sample for Magento
tests:
Pages should be fast enough:
path: "/.*"
assertions:
- "main.wall_time < 3s"
- "main.io < 1s"
- "main.cpu_time < 2s"
Pages should not consume too much memory:
path: "/.*"
assertions:
- "main.memory < 50M"
- "main.peak_memory < 75M"
Pages should not do too many SQL queries:
path: "/.*"
assertions:
- "metrics.sql.queries.count < 100"
Checkout pages should be light:
path: "/checkout/.*"
assertions:
- "metrics.output.network_out < 200KB"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment