Skip to content

Improve performance#296

Open
bmjask wants to merge 2 commits into
mikemiles-dev:mainfrom
bmjask:feature/improve-perf
Open

Improve performance#296
bmjask wants to merge 2 commits into
mikemiles-dev:mainfrom
bmjask:feature/improve-perf

Conversation

@bmjask

@bmjask bmjask commented Jun 3, 2026

Copy link
Copy Markdown

No description provided.

bmjask and others added 2 commits March 29, 2026 03:13
# Conflicts:
#	benches/hot_path_bench.rs
#	src/variable_versions/field_value.rs
#	src/variable_versions/v9/parser.rs
@bmjask bmjask changed the title improves performance significant Improve performance Jun 3, 2026
@mikemiles-dev mikemiles-dev requested a review from Copilot June 6, 2026 18:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Rust example intended to measure NetflowParser::parse_bytes hot-path performance for NetFlow v9 and IPFIX, plus a minor Cargo.toml cleanup.

Changes:

  • Add examples/perf_hot_path.rs, a CLI micro-benchmark that generates template/data packets and times repeated parsing.
  • Normalize formatting for the etherparse dependency line in Cargo.toml.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
examples/perf_hot_path.rs Adds a performance-focused example that generates v9/IPFIX packets and benchmarks parsing throughput.
Cargo.toml Removes trailing whitespace / normalizes the etherparse dependency line formatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/perf_hot_path.rs
Comment on lines +274 to +277
let (template, data) = match protocol.as_str() {
"v9" => (v9_template_packet(), v9_data_packet(flows)),
"ipfix" => (ipfix_template_packet(), ipfix_data_packet(flows)),
_ => {
@mikemiles-dev

Copy link
Copy Markdown
Owner

Can you add a description? Is this just a new benchmark?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants