Skip to content

Comments

perf: add criterion benchmarks for hot paths#330

Merged
bug-ops merged 3 commits intomainfrom
perf/criterion-benchmarks
Feb 15, 2026
Merged

perf: add criterion benchmarks for hot paths#330
bug-ops merged 3 commits intomainfrom
perf/criterion-benchmarks

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 15, 2026

Summary

  • Add zeph-memory/benches/token_estimation.rs — 1KB/10KB/100KB ASCII, unicode, batch
  • Add zeph-skills/benches/matcher.rs — cosine similarity at dims 128/384/768/1536, ranking 10/50/100
  • Add zeph-core/benches/context_building.rs — compaction token summing, trim, history formatting
  • Make cosine_similarity pub for benchmark access

Closes #318

@github-actions github-actions bot added skills SKILL.md system performance Performance optimization memory Persistence and memory rust core dependencies size/L labels Feb 15, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #330   +/-   ##
=======================================
  Coverage   80.31%   80.31%           
=======================================
  Files          99       99           
  Lines       24213    24213           
=======================================
  Hits        19447    19447           
  Misses       4766     4766           
Files with missing lines Coverage Δ
crates/zeph-skills/src/matcher.rs 98.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bug-ops bug-ops enabled auto-merge (squash) February 15, 2026 14:37
@bug-ops bug-ops merged commit 6209781 into main Feb 15, 2026
18 checks passed
@bug-ops bug-ops deleted the perf/criterion-benchmarks branch February 15, 2026 14:47
@bug-ops bug-ops mentioned this pull request Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core dependencies memory Persistence and memory performance Performance optimization rust size/L skills SKILL.md system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: add criterion benchmarks for hot paths

2 participants