mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 06:29:42 -08:00
80affd98a8
This adds a barrier to avoid issues with unfair goroutine scheduling that causes some fake scrapers to run away from the other ones.
10 lines
337 B
Makefile
10 lines
337 B
Makefile
build:
|
|
@go build .
|
|
|
|
bench: build
|
|
@echo ">> running benchmark"
|
|
@./tsdb bench write --metrics=$(NUM_METRICS) testdata.100k
|
|
@go tool pprof -svg ./tsdb benchout/cpu.prof > benchout/cpuprof.svg
|
|
@go tool pprof -svg ./tsdb benchout/mem.prof > benchout/memprof.svg
|
|
@go tool pprof -svg ./tsdb benchout/block.prof > benchout/blockprof.svg
|