Implement benchmark functionality to compare CLI access vs LiNo protocol server access #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements comprehensive benchmarking functionality to compare CLI access (direct file access) vs LiNo protocol server access as requested in issue #31.
🆕 New Features Added
Core Benchmarking Infrastructure
CLI Integration
benchmarksubcommand with comprehensive options:--iterations: Number of test iterations per query (default: 10)--warmup: Number of warmup iterations (default: 3)--server-port: Port for benchmark server (default: 8080)--queries: Custom queries to benchmark (uses sensible defaults if not specified)Testing & Documentation
📊 Benchmark Metrics
The benchmark provides detailed performance analysis including:
🚀 Usage Examples
Basic benchmark with default settings:
Custom benchmark configuration:
View help:
🔍 Technical Implementation
🧪 Test Plan
📝 Issue Resolution
Fixes #31 - Provides the requested benchmarking capability to compare CLI access vs LiNo protocol server access, enabling data-driven decisions about optimal access patterns for different use cases.
The implementation follows the existing codebase patterns and integrates seamlessly with the current CLI infrastructure while adding powerful new benchmarking capabilities.
🤖 Generated with Claude Code