Skip to content

Commit

Permalink
fix bench
Browse files Browse the repository at this point in the history
  • Loading branch information
PSeitz committed Oct 29, 2024
1 parent b223a9a commit 956ba4c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions benches/crit_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ fn parse_bench() {
}
black_box(val);
});
runner.register("serde_json_borrow", move |_data| {
let mut val = None;
for line in input_gen() {
let json: OwnedValue = OwnedValue::parse_from(line).unwrap();
val = Some(json);
}
black_box(val);
});

runner.register("serde_json + access by key", move |_data| {
let mut total_size = 0;
Expand Down Expand Up @@ -113,9 +105,15 @@ fn get_access_for_input_name(name: &str) -> &[&[&'static str]] {
&["id"],
&["type"],
&["actor", "avatar_url"],
&["actor", "avatar_url"],
&["actor", "url"],
&["actor", "id"],
&["actor", "login"],
&["actor", "url"],
&["actor", "avatar_url"],
&["type"],
&["actor", "id"],
&["publuc"],
&["created_at"],
],
"wiki" => &[&["body", "url"]],
_ => &[],
Expand Down

0 comments on commit 956ba4c

Please sign in to comment.