Skip to main content

Instance Configuration

AWS t3.medium Specifications:
  • vCPUs: 2
  • Memory: 4GB RAM
  • Network Performance: Up to 5 Gigabit
Bifrost Configuration:
  • Buffer Size: 15,000
  • Initial Pool Size: 10,000
  • Test Load: 5,000 requests per second (RPS)

Performance Results

Overall Performance Metrics

Detailed Performance Breakdown

Bifrost’s Total Overhead: 59 µs* *Excludes JSON marshalling and HTTP calls, which are required in any implementation

Performance Analysis

Strengths on t3.medium

  1. Perfect Reliability: 100% success rate even at 5,000 RPS
  2. Memory Efficiency: Uses only 33% of available RAM (1,312.79 MB / 4GB)
  3. Minimal Overhead: Just 59 µs of added latency per request
  4. Fast Operations: Sub-microsecond performance for most internal operations

Resource Utilization

  • Memory Usage: Very efficient at 1,312.79 MB peak usage
  • CPU Performance: Handles 5,000 RPS workload effectively
  • Queue Management: 47.13 µs average wait time indicates good throughput

Configuration Recommendations

Optimal Settings for t3.medium

Based on test results, these configurations work well:

Tuning Opportunities

For Lower Memory Usage:
  • Reduce initial_pool_size to 7,500-8,000
  • Decrease buffer_size to 12,000-13,000
  • Trade-off: Slightly higher latency
For Better Performance:
  • Increase initial_pool_size to 12,000-13,000
  • Increase buffer_size to 17,000-18,000
  • Trade-off: Higher memory usage (monitor RAM limits)

Comparison Context

vs. t3.xlarge Performance

Key Insights:
  • t3.medium uses 61% less memory than t3.xlarge
  • Performance trade-offs are reasonable for cost savings
  • Most operations still complete in microseconds

Next Steps

When to upgrade to t3.xlarge:
  • Sustained load approaches 4,000+ RPS
  • Queue wait times consistently exceed 75 µs
  • Memory usage approaches 75% of available RAM
  • Run Your Own Benchmarks to test with your specific workload
  • Compare with t3.xlarge for performance scaling analysis