mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(benchmark): use section-prefixed tool URLs for 2.0 route scheme
The 2.0 API routes changed from /api/v1/tools/<toolId> to /api/v1/tools/<section>/<toolId>. Updated all bench script call sites to pass section-prefixed tool IDs (e.g. "image/resize" instead of "resize"), matching the authoritative toolSection() mapping.
This commit is contained in:
@@ -139,13 +139,13 @@ for config in "${configs[@]}"; do
|
||||
if start_container "$cpus" "$memory"; then
|
||||
sleep 2
|
||||
|
||||
run_bench "$cpus" "$memory" "resize" "large" "$L" '{"width":800,"fit":"cover"}'
|
||||
run_bench "$cpus" "$memory" "compress" "targetSize" "$L" '{"mode":"targetSize","targetSizeKb":500}'
|
||||
run_bench "$cpus" "$memory" "convert" "avif" "$L" '{"format":"avif","quality":50}'
|
||||
run_bench "$cpus" "$memory" "image/resize" "large" "$L" '{"width":800,"fit":"cover"}'
|
||||
run_bench "$cpus" "$memory" "image/compress" "targetSize" "$L" '{"mode":"targetSize","targetSizeKb":500}'
|
||||
run_bench "$cpus" "$memory" "image/convert" "avif" "$L" '{"format":"avif","quality":50}'
|
||||
|
||||
run_batch_bench "$cpus" "$memory" 5
|
||||
|
||||
run_bench "$cpus" "$memory" "collage" "4img" "NONE" '' \
|
||||
run_bench "$cpus" "$memory" "image/collage" "4img" "NONE" '' \
|
||||
|| log "Collage test skipped (needs multi-file support)"
|
||||
|
||||
cleanup
|
||||
|
||||
Reference in New Issue
Block a user