Nick Misasi
|
448be3350e
|
bench(10-03): add Python SDK benchmark tests
Create comprehensive benchmark tests measuring Python SDK overhead:
API Call Benchmarks:
- GetServerVersion: baseline gRPC round-trip
- GetUser: entity retrieval with wrapper conversion
- GetChannel: another entity pattern
Wrapper Conversion Benchmarks:
- User.from_proto / User.to_proto
- Post.from_proto
- Channel.from_proto
Hook Decorator Benchmarks:
- Hook decorator application overhead
- get_hook_name lookup (attribute access)
- is_hook_handler check
Uses simple timing with time.perf_counter() for compatibility
(pytest-benchmark not required). Reports mean, median, stdev,
min, max, and ops/sec for each benchmark.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-19 15:43:42 -05:00 |
|