mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
benchmark
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
8
scripts/http_host/benchmark/wrk_usage.txt
Normal file
8
scripts/http_host/benchmark/wrk_usage.txt
Normal 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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user