This project performs performance testing of Claude models hosted on Anthropic vs AWS Bedrock. It measures and compares:
- Response times
- Throughput
- Token processing speed
- Cost efficiency
- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
Create a
.envfile with:
ANTHROPIC_API_KEY=your_anthropic_key
AWS_ACCESS_KEY_ID=your_aws_key_id
AWS_SECRET_ACCESS_KEY=your_aws_secret
AWS_REGION=your_aws_region
- Run the test:
python performance_test.pyThe test can be configured through config.py. You can modify:
- Number of test iterations
- Prompt sizes
- Test scenarios
- Model versions
- Concurrent requests
The test generates:
- CSV files with raw performance data
- Performance comparison charts
- Statistical analysis of results