THis is an extract from my .gitlab-cy.yml file:
benchmarks:
stage: benchmarks
script:
- env ENV=DEVELOPMENT GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -run=xxx -bench=. ./test/benchmarks/... -mod vendor -benchtime 100x
coverage: '/\(statements\)\s+\d{1,3}\./'
I want this pipeline stage to show the number “X ns/op” where X is how many average nanoseconds this benchmark decided that my code took.
What regular expression should I use in the “coverage” line ?