mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-11 23:03:45 -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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| benchmark_test.py | ||
| test_client_smoke.py | ||
| test_codegen_imports.py | ||
| test_hook_registry.py | ||
| test_hook_runner.py | ||
| test_hooks_command_config.py | ||
| test_hooks_grpc_integration.py | ||
| test_hooks_http.py | ||
| test_hooks_lifecycle.py | ||
| test_hooks_messages.py | ||
| test_hooks_notifications.py | ||
| test_hooks_system.py | ||
| test_hooks_user_channel.py | ||
| test_integration_e2e.py | ||
| test_plugin_bootstrap.py | ||
| test_posts_files_kv.py | ||
| test_users_teams_channels.py | ||