Skip to content

RedisGraph/redisgraph-benchmark-go

Repository files navigation

redisgraph-benchmark-go

license GitHub issues Discord

Overview

This repo contains code to quick benchmark RedisGraph, using the official redisgraph-go client.

Installation

The easiest way to get and install the redisgraph-benchmark-go Go program is to use go get and then go install:

# Fetch this repo go get github.com/RedisGraph/redisgraph-benchmark-go cd $GOPATH/src/github.com/RedisGraph/redisgraph-benchmark-go make

Usage of redisgraph-benchmark-go

$ ./redisgraph-benchmark-go --help Usage of ./redisgraph-benchmark-go: -a string Password for Redis Auth. -c uint number of clients. (default 50) -debug int Client debug level. -graph-key string graph key. (default "graph") -h string Server hostname. (default "127.0.0.1") -l Loop. Run the tests forever. -n uint Total number of requests (default 1000000) -p int Server port. (default 6379) -rps int Max rps. If 0 no limit is applied and the DB is stressed up to maximum. 

Sample output - 1M commands

$ redisgraph-benchmark-go -graph-key graph "CREATE (u:User)" Debug level: 0. Total clients: 50. Commands per client: 20000 Total commands: 1000000 Test time Total Commands Total Errors Command Rate Client p50 with RTT(ms) Graph Internal p50 with RTT(ms) 53s [100.0%] 1000000 0 [0.0%] 8002.89 2.097 0.000 ################# RUNTIME STATS ################# Total Duration 53.001 Seconds Total Commands issued 1000000 Total Errors 0 ( 0.000 %) Throughput summary: 18868 requests per second Overall Client Latency summary (msec): p50 p95 p99 2.097 5.347 9.063 ################## GRAPH STATS ################## Total Empty resultsets 1000000 ( 100.000 %) Total Nodes created 1000000 Total Nodes deleted 0 Total Labels added 0 Total Properties set 0 Total Relationships created 0 Total Relationships deleted 0 Overall RedisGraph Internal Execution time Latency summary (msec): p50 p95 p99 0.000 0.000 0.000 

Sample output - running in loop mode ( Ctrl+c to stop )

$ redisgraph-benchmark-go -l -graph-key graph "CREATE (:Rider {name:'A'})-[:rides]->(:Team {name:'Z'})" Debug level: 0. Running in loop until you hit Ctrl+C Test time Total Commands Total Errors Command Rate Client p50 with RTT(ms) Graph Internal p50 with RTT(ms) ^C 11s [----%] 136649 0 [0.0%] 7854.48 3.667 0.000 received Ctrl-c - shutting down ################# RUNTIME STATS ################# Total Duration 11.516 Seconds Total Commands issued 140704 Total Errors 0 ( 0.000 %) Throughput summary: 12217 requests per second Overall Client Latency summary (msec): p50 p95 p99 3.751 6.887 8.623 ################## GRAPH STATS ################## Total Empty resultsets 140705 ( 100.000 %) Total Nodes created 281410 Total Nodes deleted 0 Total Labels added 0 Total Properties set 281410 Total Relationships created 140705 Total Relationships deleted 0 Overall RedisGraph Internal Execution time Latency summary (msec): p50 p95 p99 0.000 0.000 0.000 

About

Benchmark utility that relies on redisgraph-go official client to do the command calls to the db

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •