class Minitest::Benchmark

def sigma enum, &block

def sigma enum, &block
  enum = enum.map(&block) if block
  enum.inject { |sum, n| sum + n }
end