Калибровка и проверка Argon2id на стенде

This commit is contained in:
EgorAnti
2026-11-26 19:40:21 +03:00
parent 1ee35c54a7
commit 953c1986aa
11 changed files with 168 additions and 16 deletions
+21
View File
@@ -0,0 +1,21 @@
[CmdletBinding()]
param(
[string]$Image = 'eclipse-temurin:23-jdk'
)
$ErrorActionPreference = 'Stop'
$root = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
$arguments = @(
'run', '--rm',
'--cpus', '0.75',
'--memory', '768m',
'--mount', "type=bind,source=$root,target=/workspace",
'--mount', 'type=volume,source=hla-lab7-gradle-benchmark,target=/root/.gradle',
'--workdir', '/workspace',
'--entrypoint', '/bin/bash',
$Image,
'-c', 'bash ./gradlew argon2Benchmark --no-daemon --quiet'
)
& docker @arguments
if($LASTEXITCODE -ne 0){ throw 'Argon2id benchmark failed' }