-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: merge benchmarks in
tailcall_benches.rs
(#1834)
- Loading branch information
1 parent
74d2621
commit 276a612
Showing
8 changed files
with
40 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
"features": { | ||
"ghcr.io/devcontainers/features/rust:1": {} | ||
"ghcr.io/devcontainers/features/rust:1": { | ||
"version": "1.75", | ||
"profile": "default" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use criterion::{criterion_group, criterion_main, Criterion}; | ||
|
||
mod data_loader_bench; | ||
mod impl_path_string_for_evaluation_context; | ||
mod json_like_bench; | ||
mod protobuf_convert_output; | ||
mod request_template_bench; | ||
|
||
fn all_benchmarks(c: &mut Criterion) { | ||
data_loader_bench::benchmark_data_loader(c); | ||
impl_path_string_for_evaluation_context::bench_main(c); | ||
json_like_bench::benchmark_batched_body(c); | ||
json_like_bench::benchmark_group_by(c); | ||
protobuf_convert_output::benchmark_convert_output(c); | ||
request_template_bench::benchmark_to_request(c); | ||
} | ||
|
||
criterion_group! { | ||
name = benches; | ||
config = Criterion::default(); | ||
targets = all_benchmarks | ||
} | ||
criterion_main!(benches); |
276a612
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running 30s test @ http://localhost:8000/graphql
4 threads and 100 connections
400116 requests in 30.02s, 2.01GB read
Requests/sec: 13330.44
Transfer/sec: 68.42MB