...

Text file src/nhooyr.io/websocket/ci/bench.sh

Documentation: nhooyr.io/websocket/ci

     1#!/bin/sh
     2set -eu
     3cd -- "$(dirname "$0")/.."
     4
     5go test --run=^$ --bench=. --benchmem --memprofile ci/out/prof.mem --cpuprofile ci/out/prof.cpu -o ci/out/websocket.test "$@" .
     6(
     7  cd ./internal/thirdparty
     8  go test --run=^$ --bench=. --benchmem --memprofile ../../ci/out/prof-thirdparty.mem --cpuprofile ../../ci/out/prof-thirdparty.cpu -o ../../ci/out/thirdparty.test "$@" .
     9)

View as plain text