forked from cap-collectif/cap-collectif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.blackfire.yml
31 lines (30 loc) · 1.63 KB
/
.blackfire.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
tests:
"Production settings":
path: "/.*" # run the assertions for all HTTP requests
assertions:
- "metrics.twig.compile.count == 0"
- "metrics.symfony.config_check.count == 0"
- "(metrics.doctrine.annotations.read.count + metrics.doctrine.dql.parsed.count + metrics.doctrine.entities.metadata.count) == 0"
- "metrics.assetic.controller.calls.count == 0"
"Pages should be fast enough":
path: "/.*" # run the assertions for all HTTP requests
assertions:
- "main.wall_time < 100ms" # wall clock time is less than 100ms
"Pages should not read yaml":
path: "/.*" # run the assertions for all HTTP requests
assertions:
- "metrics.symfony.yaml.reads.count == 0"
"Pages should not send mail synchronously":
path: "/.*"
assertions:
- "metrics.emails.sent.count == 0"
"Commands should be fast enough":
command: ".*" # run the assertions for all CLI commands
assertions:
- "main.wall_time < 2s" # wall clock time is less than 2s
"Homepage should not hit the DB":
path: "/" # only apply the assertions for the homepage
assertions:
- "metrics.sql.queries.count == 0" # no SQL statements executed
- "main.peak_memory < 10mb" # memory does not exceed 10mb
- "metrics.output.network_out < 100kb" # the response size is less than 100kb