Skip to content

Commit

Permalink
chore(benchmarks): call-requests and call-results benchmarks (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
monoid authored Nov 27, 2023
1 parent 97be08e commit 2b83ad1
Show file tree
Hide file tree
Showing 10 changed files with 1,589 additions and 685 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

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

7 changes: 1 addition & 6 deletions air/src/execution_step/instructions/call/resolved_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ use air_interpreter_interface::CallRequestParams;
use air_parser::ast;
use air_trace_handler::merger::MergerCallResult;
use air_trace_handler::TraceHandler;
use air_utils::measure;

use std::rc::Rc;

Expand Down Expand Up @@ -162,11 +161,7 @@ impl<'i> ResolvedCall<'i> {
tetraplets,
} = self.resolve_args(exec_ctx)?;

let serialized_tetraplets = measure!(
serde_json::to_string(&tetraplets).expect("default serializer shouldn't fail"),
tracing::Level::INFO,
"serde_json::to_string(tetraplets)",
);
let serialized_tetraplets = serde_json::to_string(&tetraplets).expect("default serializer shouldn't fail");

let request_params = CallRequestParams::new(
tetraplet.service_id.to_string(),
Expand Down
Loading

0 comments on commit 2b83ad1

Please sign in to comment.