Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: jobsdb benchmark cli tool #5370

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

Sidddddarth
Copy link
Member

Description

Scaffolding for jobsdb benchmarking tool.
A basic cli tool to run some common situations we may want to benchmark.

Includes a Dockerfile with said tool that does nothing(? - CMD ['cat', '/dev/stdout']).

Currently has one scenario - base

NAME:
   jobsdbBench - A new cli application

USAGE:
   jobsdbBench [global options] command [command options]

DESCRIPTION:
   A command line benchmark tool for jobsdb

COMMANDS:
   base     run a benchmark with m readers and n writers concurrently
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

options/flags for base:

NAME:
   jobsdbBench base - run a benchmark with m readers and n writers concurrently

USAGE:
   jobsdbBench base [command options]

DESCRIPTION:
   creates jobs of m sourceIDs for the writers to query. Readers query by sourceID

OPTIONS:
   --numReaders value, -m value              number of concurrent readers - test will create as many sourceIDs (default: config.GetInt("numReaders", 10))
   --numWriters value, -n value              number of concurrent writers (default: config.GetInt("numWriters", 10))
   --numJobsPerReader value, -j value        number of jobs per sourceID/reader (default: config.GetInt("numJobsPerReader", 10000))
   --eventSize value, -e value               payload size of the events in bytes(estimate) (default: config.GetInt("eventSize", 1536))
   --failurePercentage value, -f value       percentage of events that fail on the first attempt, all pass on second attempt (default: 0)
   --eventsPickedUpPerQuery value, -q value  number of events picked up per query (default: config.GetInt("eventsPickedUpPerQuery", 2000))
   --clearDB, -c                             cleardb before starting (default: false)
   --verbose, -v                             verbose benchmark script logging (default: false)
   --help, -h                                show help

Linear Ticket

< Replace with Linear Link ( create or search linear ticket) or >

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 320 lines in your changes missing coverage. Please review.

Project coverage is 74.37%. Comparing base (f22e8f4) to head (fe9d001).

Files with missing lines Patch % Lines
jobsdb/cmd/bench/cli.go 0.00% 213 Missing ⚠️
jobsdb/cmd/bench/main.go 0.00% 107 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5370      +/-   ##
==========================================
- Coverage   74.68%   74.37%   -0.32%     
==========================================
  Files         437      439       +2     
  Lines       61240    61560     +320     
==========================================
+ Hits        45737    45784      +47     
- Misses      12954    13239     +285     
+ Partials     2549     2537      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant