Skip to content

Commit

Permalink
fix: benchmarks build fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus committed Dec 16, 2023
1 parent 36f111b commit 08a3a79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
17 changes: 4 additions & 13 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ categories = ["command-line-utilities"]
description = "Utility for viewing json-formatted log files."
keywords = ["cli", "human", "log"]
name = "hl"
version = "0.23.1"
version = "0.23.2"
edition = "2021"
build = "build.rs"

Expand Down
7 changes: 4 additions & 3 deletions benches/parse-and-format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ use criterion::{criterion_group, criterion_main, Criterion};

// local imports
use hl::{
app::RecordIgnorer, settings, timezone::Tz, DateTimeFormatter, Filter, IncludeExcludeKeyFilter, LinuxDateFormat,
Parser, ParserSettings, RecordFormatter, SegmentProcessor, Settings, Theme,
app::RecordIgnorer, app::SegmentProcess, settings, timezone::Tz, DateTimeFormatter, Filter,
IncludeExcludeKeyFilter, LinuxDateFormat, Parser, ParserSettings, RecordFormatter, SegmentProcessor, Settings,
Theme,
};

// ---
Expand All @@ -32,7 +33,7 @@ fn benchmark(c: &mut Criterion) {
settings::Formatting::default(),
);
let filter = Filter::default();
let mut processor = SegmentProcessor::new(&parser, &formatter, &filter);
let mut processor = SegmentProcessor::new(&parser, &formatter, &filter, false);
let mut buf = Vec::new();
b.iter(|| {
processor.run(record, &mut buf, "", &mut RecordIgnorer {});
Expand Down

0 comments on commit 08a3a79

Please sign in to comment.