Skip to content

Benchmarks

Iris consistently ranks among the fastest Go web frameworks. Below are detailed performance metrics and comparisons.

Performance Comparison

📖 Results from firing 200,000 requests with dynamic parameters, JSON request bodies, and JSON responses:

FrameworkLanguageRequests/secLatencyThroughputTime To Complete
IrisGo238,954521.69µs64.15MB0.84s
GinGo229,665541.96µs62.86MB0.87s
ChiGo228,072545.78µs62.61MB0.88s
EchoGo224,491553.84µs61.70MB0.89s
MartiniGo198,166627.46µs54.47MB1.01s
KestrelC#163,486766.90µs47.42MB1.23s
BuffaloGo102,4781.22ms28.14MB1.95s
KoaJavascript48,4252.56ms15.39MB4.14s
ExpressJavascript23,6225.25ms9.04MB8.41s

Performance Metrics

Router Performance

  • Route matching speed
  • Parameter extraction efficiency
  • Memory allocation per request
  • Concurrent request handling
  • Response time consistency

Memory Usage

  • Heap allocations
  • Garbage collection impact
  • Memory footprint
  • Resource utilization
  • Memory leak prevention

Request Processing

  • Request parsing speed
  • Middleware execution time
  • Handler invocation efficiency
  • Response generation speed
  • Error handling overhead

Best Practices

1. Performance Optimization

  • Enable compression
  • Implement caching
  • Optimize routing patterns
  • Minimize allocations
  • Handle timeouts effectively

2. Testing Strategy

  • Regular benchmarking
  • Load testing
  • Performance profiling
  • Metrics monitoring
  • Results documentation

3. Resource Management

  • Connection pooling
  • Memory optimization
  • Resource cleanup
  • Error recovery
  • Graceful shutdown

4. Monitoring

  • Performance metrics
  • Resource utilization
  • Error rates
  • Response times
  • System health

Built with excellence by Hellenic Development, delivering enterprise-grade solutions.