mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Remove infinite block in benchmark
This commit is contained in:
parent
3870ec285c
commit
8214dc82a7
|
@ -139,7 +139,7 @@ func (b *writeBenchmark) run(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
dur := measureTime("ingestScrapes", func() {
|
dur := measureTime("ingestScrapes", func() {
|
||||||
b.startProfiling()
|
b.startProfiling()
|
||||||
total, err = b.ingestScrapes(metrics, 15000)
|
total, err = b.ingestScrapes(metrics, 2000)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
exitWithError(err)
|
exitWithError(err)
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,6 @@ func (b *writeBenchmark) run(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
fmt.Println(" > total samples:", total)
|
fmt.Println(" > total samples:", total)
|
||||||
fmt.Println(" > samples/sec:", float64(total)/dur.Seconds())
|
fmt.Println(" > samples/sec:", float64(total)/dur.Seconds())
|
||||||
select {}
|
|
||||||
|
|
||||||
measureTime("stopStorage", func() {
|
measureTime("stopStorage", func() {
|
||||||
if err := b.storage.Close(); err != nil {
|
if err := b.storage.Close(); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue