Skip to content

Commit 1ff3235

Browse files
committed
Move benchmarks under 'docs'
1 parent 4d2ad94 commit 1ff3235

File tree

9 files changed

+9
-42
lines changed

9 files changed

+9
-42
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.env/
2-
/profile/*.prof
3-
/profile/trace.out
2+
/docs/profile/*.prof
3+
/docs/profile/trace.out
44
/glassdb.test

CONTRIBUTING.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

hack/benchstat-cmp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
set -e
1919

2020
# Compute defaults: last two benchmarks.
21-
DEF=$(ls -ltr profile/bench-* | awk '{ print $9 }' | tail -2)
21+
DEF=$(ls -ltr docs/profile/bench-* | awk '{ print $9 }' | tail -2)
2222
OLD_DEF=$(echo "${DEF}" | sed -n '1p')
2323
NEW_DEF=$(echo "${DEF}" | sed -n '2p')
2424

hack/pprof.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ set -e
2020
PATTERN=${1:-.}
2121

2222
cd $(dirname $(readlink -f $0))/..
23-
mkdir -p profile
2423

25-
go test -test.v -bench "${PATTERN}" -cpuprofile=profile/cpu.prof
26-
go test -test.v -benchmem -bench "${PATTERN}" -memprofile=profile/mem.prof
27-
go test -test.v -tags tracing -bench "${PATTERN}" -trace=profile/trace.out
28-
go tool pprof -http=":8081" glassdb.test profile/cpu.prof
29-
go tool pprof -http=":8081" glassdb.test profile/mem.prof
30-
go tool trace profile/trace.out
24+
go test -test.v -bench "${PATTERN}" -cpuprofile=docs/profile/cpu.prof
25+
go test -test.v -benchmem -bench "${PATTERN}" -memprofile=docs/profile/mem.prof
26+
go test -test.v -tags tracing -bench "${PATTERN}" -trace=docs/profile/trace.out
27+
go tool pprof -http=":8081" glassdb.test docs/profile/cpu.prof
28+
go tool pprof -http=":8081" glassdb.test docs/profile/mem.prof
29+
go tool trace docs/profile/trace.out

0 commit comments

Comments
 (0)