feat(benchpress): add receivedData + requestCount to PerflogMetric
Closes #5750
This commit is contained in:

committed by
Olivier Chafik

parent
24dcd267b8
commit
fe1dd77d94
@ -175,6 +175,20 @@ In addition to that, one extra binding needs to be passed to benchpress in tests
|
||||
|
||||
benchpress.sample(bindings: [bp.bind(bp.Options.CAPTURE_FRAMES).toValue(true)], ... )
|
||||
|
||||
# Requests Metrics
|
||||
|
||||
Benchpress can also record the number of requests sent and count the received "encoded" bytes since [window.performance.timing.navigationStart](http://www.w3.org/TR/navigation-timing/#dom-performancetiming-navigationstart):
|
||||
|
||||
- `receivedData`: number of bytes received since the last navigation start
|
||||
- `requestCount`: number of requests sent since the last navigation start
|
||||
|
||||
To collect these metrics, you need the following corresponding extra bindings:
|
||||
|
||||
benchpress.sample(bindings: [
|
||||
bp.bind(bp.Options.RECEIVED_DATA).toValue(true),
|
||||
bp.bind(bp.Options.REQUEST_COUNT).toValue(true)
|
||||
], ... )
|
||||
|
||||
# Best practices
|
||||
|
||||
* Use normalized environments
|
||||
|
Reference in New Issue
Block a user