Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions frameworks/rage/app/controllers/benchmark_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def symbolize_keys!
end

class BenchmarkController < RageController::API
SERVER_NAME = 'rage'.freeze
DATA_DIR = ENV.fetch('DATA_DIR', '/data')

dataset_path = File.join DATA_DIR, 'dataset.json'
Expand All @@ -27,10 +26,6 @@ def self.dataset_items = @dataset_items

PG_QUERY = 'SELECT id, name, category, price, quantity, active, tags, rating_score, rating_count FROM items WHERE price BETWEEN $1 AND $2 LIMIT $3'

before_action do
headers["server"] = SERVER_NAME
end

def baseline_one
total = params[:a].to_i + params[:b].to_i
if request.post?
Expand Down