mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-19 14:38:02 +00:00
Major enhancements to scripts/performance_tests.py: 🚀 Features Added: - Complete avatar style coverage (identicon, monsterid, robohash, pagan, retro, wavatar, mm, mmng) - All sizes tested (80px, 256px) for each style - Cache hit/miss tracking and display - Random email generation for realistic testing - Full libravatar URL generation using official library - Professional table output with PrettyTable 📊 Display Improvements: - Perfect alignment with PrettyTable library - Visual dividers between avatar styles - Status icons (✅ success, ⚠️ mixed, ❌ failed) - Cache status indicators (hit/miss/mixed/error) - Email address and example URL display - Grouped results by avatar style with averages 🔧 Technical Improvements: - Integrated libravatar library for URL generation - Replaced manual URL construction with proper library calls - Enhanced error handling and reporting - Added prettytable dependency to requirements.txt - Improved code organization and maintainability 🎯 Testing Coverage: - 8 avatar styles × 2 sizes = 16 test combinations - Cache performance testing with hit/miss analysis - Concurrent load testing with cache statistics - Both local and remote testing modes supported The performance tests now provide comprehensive, professional output that's easy to read and analyze, with complete coverage of all avatar generation functionality.