You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/deepflowio/df-evaluation/eval-bench

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/deepflowio/df-evaluation/eval-bench

v0.0.0-20250324065802-f3b588c5daa1
Source
Go
Version published
Created
Source

Build

go build

Run

Usage of ./eb:
  -h string
        Target Service "host:port"
  -p int
        DB Root Password
  -r int
        request per second
  -d int
        Execution time in seconds
  -t int
        Number of threads
  -e string
        Engine of DB [redis, mysql, mongo]
  -c int
        concurrent connections of each thread, only support mysql
  -complexity int
        complexity of query sql, only add count of select key
  -method string
        method of query, redis:[GET, SET]
  -sql string
        customizable sql of query, only support mysql
  • Example:
[root@iZ2zebdukco9jfpuo0shnaZ ~]# ./eb -e redis -h 127.0.0.1:6379 -p deepflow -r 50000 -t 5 -d 10
2024/01/29 13:57:24 [*] Start redis App Traffic 127.0.0.1:6379, date rate 10000 rps.
2024/01/29 13:57:24 [*] Start redis App Traffic 127.0.0.1:6379, date rate 10000 rps.
2024/01/29 13:57:24 [*] Start redis App Traffic 127.0.0.1:6379, date rate 10000 rps.
2024/01/29 13:57:24 [*] Start redis App Traffic 127.0.0.1:6379, date rate 10000 rps.
2024/01/29 13:57:24 [*] Start redis App Traffic 127.0.0.1:6379, date rate 10000 rps.
now request count is 50020 , err is 0, cost time 1.001950s
now request count is 100021 , err is 0, cost time 2.001982s
now request count is 150068 , err is 0, cost time 3.002013s
now request count is 200076 , err is 0, cost time 4.002049s
now request count is 250076 , err is 0, cost time 5.002072s
now request count is 300076 , err is 0, cost time 6.002102s
now request count is 350040 , err is 0, cost time 7.002169s
now request count is 400082 , err is 0, cost time 8.002204s
now request count is 450070 , err is 0, cost time 9.002954s
now request count is 500071 , err is 0, cost time 10.002993s
total: 500395, count: 500395, error: 0, request/sec: 50024.43 avg: 39.512µs  max: 3.845947ms  p50: 34.687µs  p90: 62.392µs

FAQs

Package last updated on 24 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts