Skip to content

Commit

Permalink
feat: calculate and display requests per second
Browse files Browse the repository at this point in the history
  • Loading branch information
pdylanross committed Jan 8, 2022
1 parent f00857e commit 891ce59
Show file tree
Hide file tree
Showing 11 changed files with 305 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ schema = "<type>: <body>"
schema_pattern = "(feat|fix):(\\s.*)"

[[tool.commitizen.customize.questions]]
choices = ["feat", "fix", "doc", "ci", "break", "doc"] # short version
choices = ["feat", "fix", "doc", "ci", "break", "doc", "chore"] # short version
message = "Select the type of change you are committing"
name = "change_type"
type = "list"
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
name: Bump
outputs:
should-publish: ${{ steps.add-and-commit.outputs.committed }}
steps:
- name: Check out
uses: actions/checkout@v2
Expand Down Expand Up @@ -54,21 +52,7 @@ jobs:
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-crate:
runs-on: ubuntu-latest
needs: bump
if: ${{ needs.bump.outputs.should-publish }}
name: Release Crate
steps:
- name: Check out
uses: actions/checkout@v2
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- uses: katyo/publish-crates@v1
if: ${{ steps.add-and-commit.outputs.committed }}
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
167 changes: 160 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/simple_plan.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
run:
base_url: http://localhost:8000
concurrency: 2
concurrency: 70
duration:
timed:
duration: 20s
duration: 2m
warm_up: 1s
iterations: 1
static_context:
Expand Down
2 changes: 2 additions & 0 deletions fatigue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ license = "Apache-2.0"
clap = { version = "2.34.0", features = ["suggestions", "color", "wrap_help"] }
console = "0.15.0"
crossterm = "0.22.1"
humantime = "2.1.0"
itertools = "0.10.3"
libfatigue = { path = "../libfatigue", version = "0.2.4"}
num-format = "0.4.0"
prettytable-rs = "0.8.0"
serde = "1.0.133"
serde_json = "1.0.74"
thiserror = "1.0.30"
Expand Down
2 changes: 2 additions & 0 deletions fatigue/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
extern crate thiserror;
#[macro_use]
extern crate clap;
#[macro_use]
extern crate prettytable;

use crate::output::{get_output_formatter, OutputFormatter};
use clap::{App, Arg};
Expand Down
Loading

0 comments on commit 891ce59

Please sign in to comment.