refactor: IpLookup lazy load reader

This commit is contained in:
sjdonado
2025-03-23 12:24:58 +01:00
parent 0180f36a62
commit e1d3ec480d
3 changed files with 31 additions and 34 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ require "file_utils"
SERVER_URL = "http://localhost:4000"
API_URL = "#{SERVER_URL}/api/links"
API_KEY = "secure_api_key_1"
TIME = "59s"
NUMBER_OF_REQUESTS = 1000
CONTAINER_NAME = "bit"
STATS_FILE = "resource_usage.txt"
@@ -157,7 +157,7 @@ def run_benchmark
sleep 2.seconds
process = Process.new(
"bombardier",
["-d", TIME.to_s, "-c", "30", "-l", "--disableKeepAlives", random_link],
["-n", NUMBER_OF_REQUESTS.to_s, "-c", "30", "-l", "--disableKeepAlives", random_link],
output: Process::Redirect::Inherit,
error: Process::Redirect::Inherit
)