From 8214dc82a77e02459ed8160aada3b54df14ac60a Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Mon, 18 Sep 2017 11:20:25 +0200 Subject: [PATCH] Remove infinite block in benchmark --- cmd/tsdb/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tsdb/main.go b/cmd/tsdb/main.go index 960c9c05e..491c2ac35 100644 --- a/cmd/tsdb/main.go +++ b/cmd/tsdb/main.go @@ -139,7 +139,7 @@ func (b *writeBenchmark) run(cmd *cobra.Command, args []string) { dur := measureTime("ingestScrapes", func() { b.startProfiling() - total, err = b.ingestScrapes(metrics, 15000) + total, err = b.ingestScrapes(metrics, 2000) if err != nil { exitWithError(err) } @@ -147,7 +147,6 @@ func (b *writeBenchmark) run(cmd *cobra.Command, args []string) { fmt.Println(" > total samples:", total) fmt.Println(" > samples/sec:", float64(total)/dur.Seconds()) - select {} measureTime("stopStorage", func() { if err := b.storage.Close(); err != nil {