| 133 | return results |
| 134 | |
| 135 | def print_summary(results: List[Dict]): |
| 136 | print("\n=== Test Results Summary ===") |
| 137 | for test_result in results: |
| 138 | print(f"\nTest Case: {test_result['test_case']['name']}") |
| 139 | for approach_result in test_result['results']: |
| 140 | status = "✅" if approach_result['status'] == 'success' else "❌" |
| 141 | print(f" {status} {approach_result['approach']}: {approach_result['time']:.2f}s") |
| 142 | if approach_result['status'] == 'error': |
| 143 | print(f" Error: {approach_result['result']}") |
| 144 | |
| 145 | def main(): |
| 146 | parser = argparse.ArgumentParser(description="Test different LLM inference approaches.") |