module Rack # Deprecated. Benchmarks output now prepended at end of Kiss#call. # This module is kept for benchmarking full request operation time; # this should be moved to Kiss#call as well. Then remove this module # for Kiss 1.1. # Rack::Bench shows total request duration for any request. class Bench def initialize(app) @app = app end def call(env) start_time = Time.now code, headers, body = @app.call(env) end_time = Time.now contents = <<-EOT