summaryrefslogtreecommitdiff
path: root/net-mgmt/victoria-metrics/files/patch-benchmarks_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/victoria-metrics/files/patch-benchmarks_Makefile')
-rw-r--r--net-mgmt/victoria-metrics/files/patch-benchmarks_Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mgmt/victoria-metrics/files/patch-benchmarks_Makefile b/net-mgmt/victoria-metrics/files/patch-benchmarks_Makefile
new file mode 100644
index 000000000000..215eb55c0f16
--- /dev/null
+++ b/net-mgmt/victoria-metrics/files/patch-benchmarks_Makefile
@@ -0,0 +1,16 @@
+--- benchmarks/Makefile.orig 2025-08-01 12:54:19 UTC
++++ benchmarks/Makefile
+@@ -35,11 +35,8 @@
+ tsbs: tsbs-build tsbs-generate-data tsbs-load-data tsbs-generate-queries tsbs-run-queries
+
+ TSBS_SCALE := 100000
+-# If GNU date is available, use it; otherwise, fall back to the standard date command
+-# User can install GNU date on macOS via `brew install coreutils`
+-DATE_CMD := $(shell which gdate 2>/dev/null || echo date)
+-TSBS_START := $(shell $(DATE_CMD) -u -d "1 day ago 00:00:00" +"%Y-%m-%dT%H:%M:%SZ")
+-TSBS_END := $(shell $(DATE_CMD) -u -d "00:00:00" +"%Y-%m-%dT%H:%M:%SZ")
++TSBS_START := $(shell date -u -v-1d -v0H -v0M -v0S +"%Y-%m-%dT%H:%M:%SZ")
++TSBS_END := $(shell date -u -v0H -v0M -v0S +"%Y-%m-%dT%H:%M:%SZ")
+ TSBS_STEP := 80s
+ TSBS_QUERIES := 1000
+ TSBS_WORKERS := 4