mix benchmark (pipe_assign v1.1.0)

Run performance benchmarks for PipeAssign.

This task runs benchmarks comparing the performance of assign_to/2 macro versus traditional assignment patterns.

Usage

# Run quick comparison (default)
mix benchmark

# Run comprehensive benchmark suite
mix benchmark --full

# Run specific benchmark type
mix benchmark --type=hotpath
mix benchmark --type=complex
mix benchmark --type=string

Options

  • --full - Run the comprehensive benchmark suite (takes longer)
  • --type=TYPE - Run specific benchmark type (hotpath, complex, string, list, map)
  • --output=FILE - Save HTML results to specified file

Benchmark Types

  • quick - Fast comparison of common patterns (default)
  • full - Comprehensive test suite with multiple data sizes
  • hotpath - Focus on performance-critical scenarios
  • complex - Multi-step pipeline comparisons
  • string - String processing benchmarks
  • list - List processing benchmarks
  • map - Map manipulation benchmarks