Cinebench R15 / R15 Extreme / R20 Command Line Syntax BAT - Loop & detailed Output

Discussion in 'Windows OS and Software' started by jaybee83, Mar 31, 2018.

  1. jaybee83

    jaybee83 Biotech-Doc

    Reputations:
    4,085
    Messages:
    11,564
    Likes Received:
    9,124
    Trophy Points:
    931
    Hey guys!

    So I am pretty sure we all are big fans of Cinebench R15 :) It allows us to check a CPU´s unadulterated raw CPU performance independently from non-optimized software for many cores or other shenanigans that would otherwise skew the results (i.e. non-CPU system bottlenecks in games, focus on clocks vs. cores, etc.) Aside from that aspect, it is also a nice stress / stability / thermal test to check any voltage and clock tuning you might be doing.

    However, the thing that actually bothered me about CB15 is its lacking loop functionality. Say, if you want to do a continuous stress test to heat up your system or if youre hunting for the highest possible score at a given frequency (since there are naturally some variations between different runs). The only solution for that so far was to sit in front of your machine and press the "Run" button every. single. time. :rolleyes: Plus, you would have to manually save or write down individual scores of each run to keep track of your data... :confused:

    NO MORE! ;)

    I had noticed some while ago that Notebookcheck (I am sure we are all aware who that is :p) had started publishing Reviews including data from looped, continuous CB15 runs! This was mostly to check a particular Laptops´ capability to properly cool its CPU and keep its clocks steady.

    This got me curious, naturally, so I contacted them and explained it would help IMMENSELY if they could share their newly found wisdom with me. I was in luck and they were indeed willing to spill their secrets :D

    So, enough general info, lets get to the gist of this...


    What is this about exactly?
    CB15 has an in-built command-line interface, which allows a user to operate the program via cmd and thus acquire full control over it, which is not possible through its regular graphical user interface (GUI). This includes the ability to loop the program with any or all included CPU and GPU tests (1 Core, x Core, OpenGL) and save the results into a specified output file :cool:


    Why hasn´t anyone thought of this before???
    Well, while it WAS indeed known that CB15 has an inbuilt CLI, there is unfortunately no official documentation detailing the syntax necessary (meaning the exact commands) in order to get control over CB15 via CLI.


    How is the syntax executed?
    Pretty simple actually: Either you open up a cmd prompt and input the syntax manually every time you want to play around with CB15. OR, and this is my preferred solution, you input the syntax into a .bat file and just double-click on it to do its thing. So every time you want to modify the syntax, you just edit the .bat file with Notepad or similar editor and youre good to go ;)


    What does the syntax look like?
    Alright, now this is the heart of the matter. The syntax I have received by Notebookcheck´s Chief Technology Officer is not much to look at, but it gives us several options we did not have before. Here is an example:

    for /l %%x in (1, 1, 13) do (
    "
    C:\User\Programs\Cinebench R15\CINEBENCH Windows 64 Bit.exe" -cb_cpux >>"C:\Users\User1\Desktop\CB15.txt"

    )
    pause


    What do the syntax commands do?
    Ok, so i have highlighted some parts in different colors above in order to be able to explain what each part does.

    Red = The three integers in the parentheses determine how a CB15 loop is run. The third and last number (in this case 13) determines how many times the loop is going to be executed. Unfortunately, I am not yet sure what the first and second integers exactly do. I have a suspicion that the second integer determines the first run of the loop that shall be saved in the output file (see below). As for the first integer, your guess is as good as mine! If you have any input on that, please enlighten me :)

    Blue = Pretty straightforward, this is the location of the CB15.exe

    Green = This part determines, which tests are supposed to be included in the CB Loop. There are a total of four possibilities to input here, which are:
    -cb_cpu1 = runs only the Single Core test procedure
    -cb_cpux = runs only the Multi Core test procedure
    -cb_opengl = runs only the OpenGL test procedure
    -cb_all = runs all test procedures sequentially

    Yellow = The designated location of the output file and its format. So far I have sticked with .txt, but its possible that other formats would also work (like .xml, .html, .xls, etc.) Youre welcome to try and report back whats possible! ;)

    Grey = "pause" in this case lets the CLI know that the Loop is finished, thus waiting for one last manual input for exit the CMD prompt. Thats it, youre done! :D


    Drawbacks / Limitations
    Admittedly, its not a perfect loop! What this syntax does is automatically launching and executing the selected tests, but CB15 is loaded up anew every time a run is executed. So you basically have a loop with (albeit short) intermittent pauses, during which CB15 is relaunched and run, thus your CPU is not loaded 100% all the time. However, this is worlds better than having to manually do this yourself! Especially when recording a bunch of runs to keep track of a lot of scores!
    Unfortunately, the recorded scores are only saved in the output file, but not in CB15 itself. Since the inbuilt CB15 scores are in turn based on simple .txt files in the installation directory, this is easily fixable by manually transferring the output file results into separate .txt files to integrate into your personal CB scores databank ;) If you´re unsure about this, just check the "cb_ranking" folder in your CB15 installation directory and see for yourself! :)


    Download
    I have prepared an example .bat file and offer it as a .zip on my Box account. Just unzip and right-click to edit the file with Notepad (see syntax details above) to adjust it to your setup and preferences. After that, a double-click is enough and the magic begins :cool: Lean back and enjoy the automated CB15 Loop! :D

    Link: https://app.box.com/s/x7yaf7waimuhe8vq8ach64pqqqj2c0bg


    Credits and Disclaimer
    I want to be absolutely clear about this:

    ANY AND ALL CREDITS FOR THIS GO TO NOTEBOOKCHECK!

    So, if its absolutely necessary that you distribute this information and example .bat file without pointing to this thread, at least make sure that you give credit to those awesome guys!!!


    Now enjoy and let me know if you find any additional tweaks for the CB15 syntax :)

    Cinebench R15 Extreme & R20 Update
    So after a bit of playing around and some research I was able to adjust the .bat file to work with CB20, as well :cool: As before, just open the .bat file with Notepad to edit it to your needs!

    Aside from the primary command line options, I also found secondary ones to set Test Duration in seconds and to automatically accept the EULA. However, I haven't figured out yet how to properly implement those to be activated. Any input on this would be appreciated!

    Link: https://app.box.com/s/edwkpc3m3kklb3wlc6dr3yrprfncjdi7

    As for CB15 Extreme: You can just use the same .bat file as with the regular CB15, the commands are identical and work just the same ;) You only need to adjust the file path to your CB15 Extreme folder and you're good to go!


    Cheers
     
    Last edited: Mar 10, 2019
    Brad331, Yurulan, hmscott and 25 others like this.
  2. Mr. Fox

    Mr. Fox BGA Filth-Hating Elitist

    Reputations:
    29,654
    Messages:
    35,546
    Likes Received:
    57,167
    Trophy Points:
    931
    Awesome stuff. Thanks for sharing it, Brother @jaybee83

    Everyone have a happy Easter! :D
     
    Dr. AMK, Ashtrix, Papusan and 3 others like this.
  3. Vistar Shook

    Vistar Shook Notebook Deity

    Reputations:
    2,557
    Messages:
    1,222
    Likes Received:
    1,330
    Trophy Points:
    181
    Good one. Thanks.

    Enviado de meu Pixel 2 usando Tapatalk
     
    Vasudev and jaybee83 like this.
  4. bloodhawk

    bloodhawk Derailer of threads.

    Reputations:
    2,954
    Messages:
    5,851
    Likes Received:
    8,561
    Trophy Points:
    681
    Good stuff man!
     
    Last edited by a moderator: Mar 31, 2018
    Vasudev and jaybee83 like this.
  5. TANWare

    TANWare Just This Side of Senile, I think. Super Moderator

    Reputations:
    2,525
    Messages:
    9,516
    Likes Received:
    4,925
    Trophy Points:
    431
    hmscott, Ashtrix, Papusan and 3 others like this.
  6. jaybee83

    jaybee83 Biotech-Doc

    Reputations:
    4,085
    Messages:
    11,564
    Likes Received:
    9,124
    Trophy Points:
    931
    aaaah interesting! thx for the link :)

    Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
     
    hmscott and Vasudev like this.
  7. thattechgirl_viv

    thattechgirl_viv Company Representative

    Reputations:
    178
    Messages:
    31
    Likes Received:
    102
    Trophy Points:
    41
  8. jaybee83

    jaybee83 Biotech-Doc

    Reputations:
    4,085
    Messages:
    11,564
    Likes Received:
    9,124
    Trophy Points:
    931
    hey guys! Updated the OP to include CB15 Extreme and CB20 :)

    Any input on the secondary command line options for CB20 would be much appreciated!

    Enjoy! :cool:
     
    Last edited: Mar 10, 2019
    Mr. Fox likes this.
  9. Mr. Fox

    Mr. Fox BGA Filth-Hating Elitist

    Reputations:
    29,654
    Messages:
    35,546
    Likes Received:
    57,167
    Trophy Points:
    931
    Ossum Possum. :vbthumbsup:
     
    jaybee83 likes this.
  10. jaybee83

    jaybee83 Biotech-Doc

    Reputations:
    4,085
    Messages:
    11,564
    Likes Received:
    9,124
    Trophy Points:
    931
    lol, had to look that one up :D

    Sent from my Xiaomi Mi Max 2 (Oxygen) using Tapatalk
     
    Mr. Fox likes this.
Loading...

Share This Page