Files
197f3068c2 Add filters support to generic forwarding (#2742)
* Add filtering support to Generic Forwarding

* Update CHANGELOG.md

* Update forwarder_test.go

* Update distributor component documentation

* Revert Makefile change

* Update docs/sources/tempo/configuration/_index.md

Co-authored-by: Kim Nylander <[email protected]>

* Update docs/sources/tempo/operations/generic_forwarding.md

Co-authored-by: Kim Nylander <[email protected]>

* Update CHANGELOG.md

---------

Co-authored-by: Kim Nylander <[email protected]>
2023-08-04 16:54:50 +02:00

27 lines
552 B
Bash

#! /bin/bash
bench() {
filename="/tmp/$1-$2.bench"
if test -e "${filename}";
then
echo "Already exists ${filename}"
else
backup=`git rev-parse --abbrev-ref HEAD`
git checkout $1
echo -n "Creating ${filename}... "
go test ./... -run=NONE -bench=$2 > "${filename}" -benchmem
echo "OK"
git checkout ${backup}
sleep 5
fi
}
to=$1
current=`git rev-parse --abbrev-ref HEAD`
bench ${to} $2
bench ${current} $2
benchcmp $3 "/tmp/${to}-$2.bench" "/tmp/${current}-$2.bench"