From 651b1bc312df91f9e2644398f5ca21ed3cf96fef Mon Sep 17 00:00:00 2001 From: Roman Samoilov <2270393+rsamoilov@users.noreply.github.com> Date: Fri, 17 Jan 2025 14:46:00 +0000 Subject: [PATCH] Remove json and plaintext tests to reduce test time --- .../rage-sequel/app/controllers/benchmarks_controller.rb | 8 -------- frameworks/Ruby/rage-sequel/benchmark_config.json | 2 -- frameworks/Ruby/rage-sequel/config/routes.rb | 2 -- 3 files changed, 12 deletions(-) diff --git a/frameworks/Ruby/rage-sequel/app/controllers/benchmarks_controller.rb b/frameworks/Ruby/rage-sequel/app/controllers/benchmarks_controller.rb index b02e2d19416..082905ccda8 100644 --- a/frameworks/Ruby/rage-sequel/app/controllers/benchmarks_controller.rb +++ b/frameworks/Ruby/rage-sequel/app/controllers/benchmarks_controller.rb @@ -8,14 +8,6 @@ class BenchmarksController < ApplicationController headers["server"] = "rage" end - def json - render json: { message: "Hello, World!" } - end - - def plaintext - render plain: "Hello, World!" - end - def db render json: World.with_pk(random_id).values end diff --git a/frameworks/Ruby/rage-sequel/benchmark_config.json b/frameworks/Ruby/rage-sequel/benchmark_config.json index e4324c06062..4cbe6d248f4 100755 --- a/frameworks/Ruby/rage-sequel/benchmark_config.json +++ b/frameworks/Ruby/rage-sequel/benchmark_config.json @@ -3,8 +3,6 @@ "tests": [ { "default": { - "json_url": "/json", - "plaintext_url": "/plaintext", "db_url": "/db", "query_url": "/queries?queries=", "fortune_url": "/fortunes", diff --git a/frameworks/Ruby/rage-sequel/config/routes.rb b/frameworks/Ruby/rage-sequel/config/routes.rb index 98def92a7e7..c03b04a7f52 100644 --- a/frameworks/Ruby/rage-sequel/config/routes.rb +++ b/frameworks/Ruby/rage-sequel/config/routes.rb @@ -1,8 +1,6 @@ Rage.routes.draw do root to: ->(env) { [200, {}, "It works!"] } - get "json", to: "benchmarks#json" - get "plaintext", to: "benchmarks#plaintext" get "db", to: "benchmarks#db" get "queries", to: "benchmarks#queries" get "fortunes", to: "benchmarks#fortunes"