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 html = <<-EOT