Launch options:
Code: Select all
--benchmark "015 Mega.zip" --benchmark-ticks 5000 --disable-audio
Performed 5000 updates in 110029.316 ms
avg: 22.006 ms, min: 19.962 ms, max: 31.754 ms
140.101 Goodbye
Code: Select all
--benchmark "015 Mega.zip" --benchmark-ticks 5000 --disable-audio
Performed 5000 updates in 110029.316 ms
avg: 22.006 ms, min: 19.962 ms, max: 31.754 ms
140.101 Goodbye
Code: Select all
./factorio.exe > testfile.txt
Most things aren't sent to std::out and you've told it nothing special so it's all sent to the log file only. If you use something like benchmark it will send it *only* to std::out.mulark wrote:Unfortunately output redirection seems broken on Windows at the moment.
Example:No output is redirected to testfile.txtCode: Select all
./factorio.exe > testfile.txt
As a note this does work on Linux
Code: Select all
.\factorio.exe --benchmark reference.zip --benchmark-ticks 1234 > test_result.txt
.\factorio.exe --benchmark reference.zip --benchmark-ticks 1234 | tee test_result.txt
Code: Select all
# Number of ticks to run
$ticks = 10000
# Name of map
$map = "reference.zip"
function cut {
param(
[Parameter(ValueFromPipeline=$True)] [string]$inputobject,
[string]$delimiter='\s+',
[string[]]$field
)
process {
if ($field -eq $null) { $inputobject -split $delimiter } else {
($inputobject -split $delimiter)[$field] }
}
}
./factorio.exe --benchmark $map --benchmark-ticks $ticks --disable-audio | out-null
copy ..\..\factorio-current.log .
$array = cat .\factorio-current.log | cut -f 1 | Select-Object -last 2
$ms = [math]::Round(($array[1] - $array[0]) / ($ticks / 1000),3)
echo $ms | tee test_results.txt
pause