Skip to content

Commit

Permalink
Benchmarks: Client workers have been rewritten in Rust (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia authored Jun 20, 2024
1 parent 82aeaab commit 2ed0697
Show file tree
Hide file tree
Showing 17 changed files with 1,796 additions and 610 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ default_language_version:
minimum_pre_commit_version: '2.20.0'

ci:
skip: [
fmt, # cargo not installed on CI
clippy # cargo not installed on CI
]
autoupdate_branch: 'pre-commit/autoupdate'
autoupdate_schedule: quarterly

Expand Down Expand Up @@ -48,6 +52,15 @@ repos:
- id: pdm-export
name: pdm-export benchmark-servers-deps
args: ['--dev', '--group', 'benchmark-servers-deps', '--format', 'requirements', '--without-hashes', '--output', 'benchmark_server/servers/requirements.txt']
- repo: https://github.com/doublify/pre-commit-rust
rev: 'v1.0'
hooks:
- id: fmt
name: cargo fmt (benchmarks)
args: ["--manifest-path", "./benchmark_server/Cargo.toml", "--"]
- id: clippy
name: cargo clippy (benchmarks)
args: ["--manifest-path", "./benchmark_server/Cargo.toml", "--", "-D", "warnings"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 'v1.10.0'
hooks:
Expand Down
1 change: 1 addition & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- CPython >= 3.11.0
- [PDM](https://pdm-project.org/latest/#installation) >= 2.15
- The [Rust Toolchain](https://rustup.rs/)

### Virtual environment

Expand Down
11 changes: 11 additions & 0 deletions benchmark_server/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
dist

# Generated by Cargo
# will have compiled files and executables
debug/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
2 changes: 2 additions & 0 deletions benchmark_server/.rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
max_width = 130
fn_call_width = 100
Loading

0 comments on commit 2ed0697

Please sign in to comment.