Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7b99d1eecf
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (31 sloc) 0.64 kb
require_relative 'perf_helper'
require_relative '../lib/raptor'
require_relative '../spec/spec_helper'
module Ping
App = Raptor::App.new(self) do
path "ping" do
index :to => 'Ping.ping'
end
end
class Ping
def self.ping
'ping'
end
end
module Presenters
class PingList
attr_reader :subject
def initialize(subject); @subject = subject; end
end
end
end
describe "ping" do
it "is fast" do
Ping::App.call(env('GET', '/ping/')).inspect
benchmark 'RAPTOR_PING_RUNTIME' do
1000.times do
Ping::App.call(env('GET', '/ping/')).inspect
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.