Skip to content
View in the app

A better way to browse. Learn more.

HWBOT Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

guppy, a memory bandwidth benchmark

Featured Replies

For a while I've been wanting to have a better memory bandwidth limited benchmark for hwbot. While I was searching for electromagnetic simulations, I saw that the finite differences in time domain method (FDTD) ends up very memory bandwidth bound. With that in mind, I started working on this project back in January, and it's probably time to get at least one version out...

It's designed with competitive benchmarking in mind but also hopefully different enough to be interesting. It runs an FDTD electromagnetic simulation iterating (time stepping) until the bench duration has passed. That default is 30 seconds; that means that after every iteration, if 30 seconds still isn't up, it will keep iterating. That does mean that if it takes 29 seconds for a single iteration, then the bench will run for 58 seconds. Or... if somehow your cpu is that slow, you could have more than a couple minutes just doing 1 iteration as the bench.

It's also designed such that each thread runs its own independent simulation, and scoring is based on the throughput of all threads. So far in my testing cpu frequency has next to no impact on the score, and it will be limited by how many threads you use, memory bandwidth, or any bottleneck limiting effective bandwidth (such as fsb, uncore, etc....). While insensitive to primary timings, it can scale massively from properly setting secondary and especially tertiary timings.

For example:

Going from 5ghz to 5.7ghz on a 13900ks gave me a 0.17% increase in score; meanwhile, I get in some cases, linear scaling with memory frequency. It even scales with g4 over g2 for arrowlake.

Options:

USAGE:
  guppy-1.2.0 [-?|-h|--help] [-n|--numthreads <numthreads>] [-d|--duration <duration>]
  [-s|--size <size>] [--workload <workload>] [--isa <isa>] [--strict-isa-check]
  [--threading <threading>] [--large-pages] [--bypass-timer-check] [--topo-debug]
  [--timer-debug] [--guppy]

Display usage information.

OPTIONS, ARGUMENTS:
  -?, -h, --help
  -n, --numthreads <numthreads>
                          Number of threads to use [default: 0]
  -d, --duration <duration>
                          Bench duration (s) between 1-1000s [default: 30]
  -s, --size <size>       Grid size, one of [64, 128, 192, 256, 320, 384, 448, 512,
                                              640, 768, 1024, 2048, 4096, 8192]
                                              [default: 192]
  --workload <workload>   Workload to use
                              (results with different workloads aren't comparable),
                              one of [standing_wave, soft_gaussian]
                              [default: standing_wave]
  --isa <isa>             Instruction set to use for workload/solver,
                              one of [sse2, avx, avx2, fma, fma-apx, avx512f,
                                          avx512vl, avx10-2-256, avx10-2-512]
                                    [default: sse2]
  --strict-isa-check      Don't try to run if the ISA support check fails
  --threading <threading> Threading manager to use [default: os]
  --large-pages           Use large pages allocator
  --bypass-timer-check    Run the bench even if the timer is not HWBOT compliant
  --topo-debug            Print detected topology for debug
  --timer-debug           Printed detected timers
  --guppy

The standard duration is 30 seconds; you can configure the duration to be anywhere between 1 and 1000 seconds but 30 seconds. I'm open to some feedback on if it feels too short or too long. I personally find 30 seconds a nice balance since it allows for rapid iteration and not being too much of a slot machine. If 30 seconds seems like a good duration to everyone, I can release a new version with the option removed.

The grid size of the simulation is also configurable. The current default grid size is 192, which requires under half a GiB per thread, which works as a relative balance across many generations on hardware. In the future that may need to be bumped up to 256 to avoid too much fitting within the cpus caching and thereby no longer being limited by memory bandwidth. Since each thread has its own identical sim, the more threads… the more ram you need.

Here's a chart of the possible sizes and the memory used per thread:

field size

memory used per thread

64

17.55 MiB

128

134.09 MiB

192

445.64 MiB

256

1.02 GiB

320

1.99 GiB

384

3.43 GiB

448

5.43 GiB

512

8.09 GiB

640

15.77 GiB

768

27.21 GiB

1024

64.38 GiB

2048

513.50 GiB

4096

4.01 TiB

8192

32.02 TiB

I also implemented support for many different instruction sets (SSE2, AVX, AVX2, FMA, AVX512_F, AVX512_VL, APX), the effect is extremely minimal since the cpu is essentially always waiting for data not waiting for it to process data.

I also included some options to make it easier to run optimally enough without too much work getting tweaks setup:

--threading=<option> automatically assigns thread affinity based on the detected topology of the cpu in a fairly optimal way that should in most basic cases avoid the need to use process lasso.

--large-pages will use large pages so the TLB won't be stressed quite as hard (needs SeLockMemoryPrivilege)

If you're interested in the philosophy and design, read https://exaberries.ca/guppy-releases/1.2.0/whitepaper.pdf, it goes into the design and architectural reasons that it works as a memory bandwidth bound benchmark.

Note on proposed rules:

Like any other benchmark not (yet) in benchmate, the usual hwbot rules apply about newer windows versions and older than haswell or amd cpus. While this hasn't yet been added to hwbot officially, it does help make sure that the results are not skewed. Try to include the entire printout of the benchmark in any screenshots in this thread with the command line options used to run it if not the default, either to help with bug reports or to share your results.

For now I would consider durations other than 30 seconds, grid sizes other than 192, and the soft_guassian workload as not default settings and not what should be considered as the settings for hwbot (obviously not entirely up to me, and may change with feedback from hwbot mods/admins). If there is consensus I can create a version without the option to configure those settings.

Go nuts with the thread count, isa, large pages or not, and threading modes (or process lasso) trying to improve your score. The more hardware that gets tested, the better, and there may be some unforseen bottlenecks on some platforms. I already know that x58 is rather uncore limited unfortunately.

Files

There are 3 main executables:

guppy-1.2.0.exe is a 64-bit exe for modern platforms supporting the widest number of instruction sets. But it has poor windows 7 compatibility.

guppy-compat-1.2.0.exe is also 64-bit, and is compiled with better support for windows 7, but is lacking avx512 and newer instruction sets.

guppy-legacy-1.2.0.exe is a 32-bit executable with only sse2 instructions, with support for windows 7 32 bit or newer. Being 32-bit only limits it to only work with a maximum of 4GiB of ram.. as such, you will be very limited with larger grid sizes and higher thread count.

The -harness binaries run the benchmark multiple times with the option of sweeping a variable and averaging the result of multiple runs with each value, like isa used, number of threads, size, etc... to make testing easy. They are not meant to be used as the actual submission score...

Downloads and SHA-256 file hashes:

https://exaberries.ca/guppy-releases/1.2.0/guppy-1.2.0.exe 4fb5af13803fd68036ea7f9a2a5777e8b0b9d817c97d735d1319ceac31fb2d01

https://exaberries.ca/guppy-releases/1.2,0/guppy-1.2.0-harness.exe cb438110b2747e2e7bf214b12dd19a08d2ece2033af6cda1fe83b50e7ac03a0d

https://exaberries.ca/guppy-releases/1.2.0/guppy-compat-1.2.0.exe c933d6987525b039e7fff888d349682ca0dbe9807f23329255bc125e69711a1b

https://exaberries.ca/guppy-releases/1.2.0/guppy-compat-1.2.0-harness.exe bc62c3a3078bdff6ae0e67730d6c3b26d48bb1be93ab2f713eafd97afef78105

https://exaberries.ca/guppy-releases/1.2.0/guppy-legacy-1.2.0.exe b129ce62c1fb0dd73ca3fcb72a5ee0e5a9e4b112586a241db394f36c8ef081dc

https://exaberries.ca/guppy-releases/1.2.0/guppy-legacy-1.2.0-harness.exe 2013e17b918e01e42ddabfa6dc7f0d24c4a17868492a19bf81ad83be2e23be6c

Last important detail: hopefully once this is included in benchmate, I will open source it with a perpetual license to hwbot to use it how they wish.

Edited by exaberries
update to new version 1.2.0

  • Author

Some scaling examples on a 14900kf, run on windows 10 22h2:
All results are run with the options: -n 14 --large-pages --threading=numa --isa=fma

p / e / ring

memory

score (Mgups)

scaling

auto / auto / 4500

auto (4800 40-40 2t)

633.37

55 / 45 / 45

8000 36-47-45-42-87-2t manually set secondaries / tertiaries

1121.86

77% increase over stock

57 / 47 / 45

8000 36-47-45-42-87-2t manually set secondaries / tertiaries

1122.29

0.38% increase over 55 p / 45 e from 3.6% increase in p core clock and 4.4% increase in e core clock (within margin of error / run to run variance)

55 / 47 / 45

8400 36-47-45-45-87-2t (same timings as 8k)

1173.60

4.61% score increase over 8000 from 5% increase in mem clock

55 / 47 / 45

8400 36-47-45-45-87-2t (same timings as 8k)

1175.54

applying a small tweak

  • Author

Now 265k, d2d 30, ngu 32:

All results are run with the options: -n 10 --large-pages --threading=numa --isa=fma

p / e / ring

memory

score (Mgups)

scaling

55 / 50 / 40

9000 g2 42-55-55-62-712-2t manually set secondaries / tertiaries

925.64

55 / 50 / 40

9200 g2 44-62-62-67-712-2t manually set secondaries / tertiaries

937.28

1.26% scaling from 2.22% more clock despite much looser primaries,

seems to be affected by some instability

55 / 50 / 40

9333 g4 44-56-56-144-746-2t manually set secondaries / tertiaries

1042.22

11.2% scaling from 1.44% increase in clock but g4 instead of g2,

mostly from tighter timings all over.

55 / 50 / 40

9600 42-54-54-42-900-2t

1241.39

19.1% scaling, using the asrock 9600 profile with a couple timings set every so slightly tighter

As a general observation, instability can hurt performance alongside erroring, some unstable gear 4 configs were scoring only in the 800 Mgups per second range.

265k 1241.39.png265k 937.28.pngThis

  • Author

updated with version 1.1.0

changelog:

  • link visual studio runtime statically

  • add check for hwbot timer rules (windows 8 and newer need hpet on pre-skylake intel and amd)

  • add flag to bypass timer check with a warning still printed in case autodetection of windows version, processor model, or timer is faulty

  • refactor to pass errors out of workloads instead of printing within them

  • Author

updated with version 1.1.2

changelog:
- fix bug with harness column printing
- print if large pages are being used and the threading mode used

  • Author

updated with version 1.2.0

changelog:

  • make per thread results much more compact with dynamic column widths

  • lazily evaluate cpu topology; it is not longer done if no threading mode is selected and a thread count is provided by the user

  • reduce number of QPC calls further to just 2 per thread, reduces overhead when QPC is HPET

  • improved tsc identification on some cpus

  • add --timer-debug option to print more detailed debug info for timer detection

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.