Standard test needed to benchmark XRUNs

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

tramp
Established Member
Posts: 2335
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 9 times
Been thanked: 454 times

Re: Standard test needed to benchmark XRUNs

Post by tramp »

lilith wrote: Fri Mar 20, 2020 11:07 am Would it be possible to increase the rate for DSP load in the xruncounterscript.
Yes, sure.
Goto line 415 and replace

Code: Select all

grow[i] = grow_it;
with

Code: Select all

grow[i] = 1000;
isn't it enough, use a higher number.
This is the value the test starts with, as higher you set this, as higher is the starting DSP load.
xruncounter itself increase this value by 10 (100 in stress test) in each circle to increase the load.
On the road again.
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Standard test needed to benchmark XRUNs

Post by lilith »

Thank you!
User avatar
autostatic
Established Member
Posts: 1994
Joined: Wed Dec 09, 2009 5:26 pm
Location: Beverwijk, The Netherlands
Has thanked: 32 times
Been thanked: 104 times
Contact:

Re: Standard test needed to benchmark XRUNs

Post by autostatic »

Aplogies for pulling up an old thread but I wasn't aware of the existence of xruncounter and it immediately caught my attention as a getting-the-most-out-of-my-computer afficionado. I'm now running a stress test but my DSP load seems to be stuck at 2.1%. Isn't it supposed to go up? Or do you need to generate DSP load yourself?
The tool has already been helpful though, quickly found out I had to disable hyperthreading otherwise I would get xruns immediately if I would go below a buffer size of 128.
User avatar
sunrat
Established Member
Posts: 915
Joined: Wed Jul 22, 2020 2:08 pm
Has thanked: 151 times
Been thanked: 242 times

Re: Standard test needed to benchmark XRUNs

Post by sunrat »

The test I used in the other topic we were just discussing took mine slowly up to 99.35%:

Code: Select all

./xruncounter -m
I didn't try the "Stress test", sounds scary:

Code: Select all

./xruncounter -s
jean-emmanuel
Established Member
Posts: 28
Joined: Tue Sep 21, 2021 4:47 pm
Has thanked: 1 time
Been thanked: 13 times

Re: Standard test needed to benchmark XRUNs

Post by jean-emmanuel »

For some reason, I could not get reliable results until I completely removed the pulseaudio-related code from xruncounter.c.

User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Standard test needed to benchmark XRUNs

Post by lilith »

Hi,

when trying to build xruncounter.c with

Code: Select all

gcc -Wall xruncounter.c -lm `pkg-config --cflags --libs jack` -o xruncounter

I'm getting an error:

Code: Select all

xruncounter.c:1:1: error: expected identifier or ‘(’ before ‘{’ token
    1 | {"payload":{"allShortcutsEnabled":true,"fileTree":{"":{"items":[{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"xruncounter.c","path":"xruncounter.c","contentType":"file"}],"totalCount":4}},"fileTreeProcessingTime":2.02989,"foldersToFetch":[],"reducedMotionEnabled":"system","repo":{"id":177461482,"defaultBranch":"master","name":"xruncounter","ownerLogin":"Gimmeapill","currentUs ... 

libjack-jackd2-dev is installed.

tseaver
Established Member
Posts: 398
Joined: Mon Mar 13, 2017 6:07 am
Has thanked: 11 times
Been thanked: 98 times

Re: Standard test needed to benchmark XRUNs

Post by tseaver »

@lilith

Hmm, looks like you've downloaded the Github JSON metadata, rather than the xruncounter.c file itself.

If you aren't cloning the repo with git, try using the "raw" version of the file:

https://raw.githubusercontent.com/Gimme ... ncounter.c

Ubuntu, Mixbus32C; acoustic blues / country / jazz
tseaver
Established Member
Posts: 398
Joined: Mon Mar 13, 2017 6:07 am
Has thanked: 11 times
Been thanked: 98 times

Re: Standard test needed to benchmark XRUNs

Post by tseaver »

@lilith

when trying to build xruncounter.c with

Code: Select all

gcc -Wall xruncounter.c -lm `pkg-config --cflags --libs jack` -o xruncounter

I'm getting an error:

when trying to build xruncounter.c with

Code: Select all

gcc -Wall xruncounter.c -lm pkg-config --cflags --libs jack -o xruncounter

I'm getting an error:

Code: Select all

xruncounter.c:1:1: error: expected identifier or ‘(’ before ‘{’ token
    1 | {"payload":{"allShortcutsEnabled":true,"fileTree":{"":{"items":[{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"xruncounter.c","path":"xruncounter.c","contentType":"file"}],"totalCount":4}},"fileTreeProcessingTime":2.02989,"foldersToFetch":[],"reducedMotionEnabled":"system","repo":{"id":177461482,"defaultBranch":"master","name":"xruncounter","ownerLogin":"Gimmeapill","currentUs ... 

libjack-jackd2-dev is installed.

Hmm, looks like you've downloaded the Github JSON metadata, rather than the xruncounter.c file itself.

If you aren't cloning the repo with git, try using the "raw" version of the file:

https://raw.githubusercontent.com/Gimme ... ncounter.c

Ubuntu, Mixbus32C; acoustic blues / country / jazz
User avatar
lilith
Established Member
Posts: 1698
Joined: Fri May 27, 2016 11:41 pm
Location: bLACK fOREST
Has thanked: 117 times
Been thanked: 57 times
Contact:

Re: Standard test needed to benchmark XRUNs

Post by lilith »

tseaver wrote: Thu Jan 04, 2024 1:15 am

@lilith

when trying to build xruncounter.c with

Code: Select all

gcc -Wall xruncounter.c -lm `pkg-config --cflags --libs jack` -o xruncounter

I'm getting an error:

when trying to build xruncounter.c with

Code: Select all

gcc -Wall xruncounter.c -lm pkg-config --cflags --libs jack -o xruncounter

I'm getting an error:

Code: Select all

xruncounter.c:1:1: error: expected identifier or ‘(’ before ‘{’ token
    1 | {"payload":{"allShortcutsEnabled":true,"fileTree":{"":{"items":[{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"xruncounter.c","path":"xruncounter.c","contentType":"file"}],"totalCount":4}},"fileTreeProcessingTime":2.02989,"foldersToFetch":[],"reducedMotionEnabled":"system","repo":{"id":177461482,"defaultBranch":"master","name":"xruncounter","ownerLogin":"Gimmeapill","currentUs ... 

libjack-jackd2-dev is installed.

Hmm, looks like you've downloaded the Github JSON metadata, rather than the xruncounter.c file itself.

If you aren't cloning the repo with git, try using the "raw" version of the file:

https://raw.githubusercontent.com/Gimme ... ncounter.c

Thank you! I indeed made a mistake while downloading it. I copy/pasted it now and it works.

Post Reply