benchmark

This commit is contained in:
Zsolt Ero
2024-01-04 18:16:15 +01:00
parent 4b173ba50a
commit b09a2eded4
9 changed files with 61 additions and 33 deletions

View File

@@ -1,4 +0,0 @@
wrk -c1000 -d10s -t1 -s /data/ofm/benchmark/wrk_custom_list.lua http://localhost
# -t1 - needs to be single treaded, otherwise the urls would be read not in sequence

View File

@@ -1,10 +1,10 @@
local counter = 1
local lines = {}
local base_path = "/planet/20231208_091355/tiles/"
local file_path = "/data/ofm/benchmark/path_list_100k.txt"
local url_base = "/planet/20231221_134737_pt/" -- trailing slash
local path_list_txt = "/data/ofm/benchmark/path_list_500k.txt"
for line in io.lines(file_path) do
table.insert(lines, base_path .. line)
for line in io.lines(path_list_txt) do
table.insert(lines, url_base .. line)
end
local function getNextUrl()

View File

@@ -0,0 +1,8 @@
wrk -c10 -t4 -d10s -s /data/ofm/benchmark/wrk_custom_list.lua http://localhost
# -t1 => more correct, since the url list is loaded exactly in sequence
# -t4 => reflecting real world usage