Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion ci/run-performance-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,20 @@ try
$perfSummary = New-Item -ItemType directory -Path test-results/performance-summary -Force
$perfJSONOutputName = "results_$Name.json";

node fiftyone.devicedetection.onpremise/examples/onpremise/performance-console/performance.js --jsonoutput $perfJSONOutputName || $($testsFailed = $true)
# Pass the TAC data file explicitly, so the graph is measured with the full
# data file rather than whichever file the example's folder search finds
# first. Without a license key the TAC file isn't downloaded, and the
# example falls back to its default Lite data file.
$dataFile = 'fiftyone.devicedetection.onpremise/device-detection-cxx/device-detection-data/Enterprise-HashV41.hash'
$dataFileArgs = @()
if (Test-Path $dataFile) {
$dataFileArgs = '--datafile', $dataFile
}
else {
Write-Warning "No TAC data file at '$dataFile', so the example uses its default data file"
}

node fiftyone.devicedetection.onpremise/examples/onpremise/performance-console/performance.js @dataFileArgs --jsonoutput $perfJSONOutputName || $($testsFailed = $true)

Write-Output "Path to performance results - /"

Expand Down
Loading