mirror of
https://github.com/mattermost/mattermost.git
synced 2026-03-01 21:01:33 -05:00
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> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src/mattermost_plugin | ||
| tests | ||
| pyproject.toml | ||