À propos
A generic latency benchmarking library.
Outils de développementProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Originalbench 
Bench is a generic latency benchmarking library. It's generic in the sense that it exposes a simple interface (Requester) which can be implemented for various systems under test. Several example Requesters are provided out of the box.
Bench works by attempting to issue a fixed rate of requests per second and measuring the latency of each request issued synchronously. Latencies are captured using HDR Histogram, which observes the complete latency distribution and attempts to correct for Coordinated Omission. It provides facilities to generate output which can be plotted to produce graphs like the following:

Example Benchmark
package main
import (
"fmt"
"time"
"github.com/tylertreat/bench"
"github.com/tylertreat/bench/requester"
)
func main() {
r := &requester.RedisPubSubRequesterFactory{
URL: ":6379",
PayloadSize: 500,
Channel: "benchmark",
}
benchmark := bench.NewBenchmark(r, 10000, 1, 30*time.Second, 0)
summary, err := benchmark.Run()
if err != nil {
panic(err)
}
fmt.Println(summary)
summary.GenerateLatencyDistribution(nil, "redis.txt")
}
Explorer des projets similaires
Chargement…