Skip to content

Instantly share code, notes, and snippets.

@sp00n
Created September 16, 2024 18:50
Show Gist options
  • Save sp00n/62e61f2fcd4326346c4a7e5274ab11e5 to your computer and use it in GitHub Desktop.
Save sp00n/62e61f2fcd4326346c4a7e5274ab11e5 to your computer and use it in GitHub Desktop.
Batch files for running Cinebench r23 over and over until an error occurs
@echo off
SETLOCAL EnableDelayedExpansion
SET "NUMRUNS=5000"
echo Running Cinebench r15 Multi Core...
FOR /l %%i IN (1, 1, %NUMRUNS%) DO (
echo [!TIME!] Starting Run %%i
"CINEBENCH Windows 64 Bit.exe" -cb_cpux
IF !ERRORLEVEL! EQU 0 (
echo [!TIME!] Completed
echo.
) ELSE (
echo [!TIME!] FAILED^^^! ^^^(Error level !ERRORLEVEL!^^^)
echo.
pause
exit
)
)
pause
@echo off
SETLOCAL EnableDelayedExpansion
SET "NUMRUNS=5000"
echo Running Cinebench r15 Single Core...
FOR /l %%i IN (1, 1, %NUMRUNS%) DO (
echo [!TIME!] Starting Run %%i
"CINEBENCH Windows 64 Bit.exe" -cb_cpu1
IF !ERRORLEVEL! EQU 0 (
echo [!TIME!] Completed
echo.
) ELSE (
echo [!TIME!] FAILED^^^! ^^^(Error level !ERRORLEVEL!^^^)
echo.
pause
exit
)
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment