English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 17 January 2023, 06:57   #1
codepoet
Registered User
 
Join Date: Jan 2023
Location: Sammamish, WA, USA
Posts: 17
Is P96Speed a reliable benchmark?

I was playing with some changes to the P96 code in WinUAE and trying to evaluate performance differences. I *think* I managed to speed up BitBlt by about 3-5% for the optimal case (srccpy).

However, the deltas from run-to-run, both before and after, are pretty sizable. 750-780K ops at 1280x1024 32bit, and then 800-830K ops with the change.

I'm not sure I trust the tool, or perhaps it is because I'm using JIT and introducing variance that way? Although I'd expect the JIT to be fairly consistent as well, since I'm not running a ton of other apps and JIT cache shouldn't be getting swamped.

Toni, if you're lurking, would appreciate your thoughts.
codepoet is offline  
Old 17 January 2023, 11:03   #2
rutra80
Registered User
 
Join Date: Jul 2019
Location: Poland
Posts: 308
Wild speed swings disappear in exclusive fullscreen mode on my system.
rutra80 is offline  
Old 17 January 2023, 12:13   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
Quote:
Originally Posted by codepoet View Post
I was playing with some changes to the P96 code in WinUAE and trying to evaluate performance differences. I *think* I managed to speed up BitBlt by about 3-5% for the optimal case (srccpy).
SRCPY is a plain memory copy, there is not much left for optimizations.

Quote:
However, the deltas from run-to-run, both before and after, are pretty sizable. 750-780K ops at 1280x1024 32bit, and then 800-830K ops with the change.

I'm not sure I trust the tool, or perhaps it is because I'm using JIT and introducing variance that way? Although I'd expect the JIT to be fairly consistent as well, since I'm not running a ton of other apps and JIT cache shouldn't be getting swamped.

Toni, if you're lurking, would appreciate your thoughts.
No benchmark can be fully reliable due to way fastest possible CPU mode works (approximately sync CPU with raster time and if there is still time left when frame has been completed, keep executing CPU instructions until remaining real time frame time has been used).

I don't recommend JIT if benchmarking something else than pure CPU.

Quote:
Originally Posted by rutra80 View Post
Wild speed swings disappear in exclusive fullscreen mode on my system.
This could also be side-effect of some other speed limit (like vsync)
Toni Wilen is offline  
Old 17 January 2023, 21:18   #4
codepoet
Registered User
 
Join Date: Jan 2023
Location: Sammamish, WA, USA
Posts: 17
Quote:
Originally Posted by Toni Wilen View Post
SRCPY is a plain memory copy, there is not much left for optimizations.
Yup, I'm aware of that, but there are faster memcpy around than what the compiler will inline and/or what the C-runtime provides, including memcpy that take better advantage of AVX etc.

Quote:
Originally Posted by Toni Wilen View Post
I don't recommend JIT if benchmarking something else than pure CPU.
Noted, i'll disable JIT and see if i get more consistent results, and can better measure. Alternatively, i'll just author some local benchmarks that run and can produce results, and use that to justify my approach
codepoet is offline  
Old 18 January 2023, 18:58   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
Quote:
Originally Posted by codepoet View Post
Yup, I'm aware of that, but there are faster memcpy around than what the compiler will inline and/or what the C-runtime provides, including memcpy that take better advantage of AVX etc.
Ok. Makes sense, as long it is not slower when doing relatively small copies. Optimization for the worst case is not always the best idea
Toni Wilen is offline  
Old 21 January 2023, 02:12   #6
codepoet
Registered User
 
Join Date: Jan 2023
Location: Sammamish, WA, USA
Posts: 17
Quote:
Originally Posted by Toni Wilen View Post
Ok. Makes sense, as long it is not slower when doing relatively small copies. Optimization for the worst case is not always the best idea
Yup, needs to be data driven, not just for the fun of it. Although the P96 bench is doing a variety of blits, and a variety of rect-fills, so hopefully it kinda averages it out

Still, doesn't tell you any heuristics what the typical operations are, so i may need to build in some basic "benchmarking" to the P96 code to provide data on what's happening in normal typical usage scenarios, and not synthetic benchmarks
codepoet is offline  
Old 21 January 2023, 12:17   #7
Mad-Matt
Longplayer
 
Mad-Matt's Avatar
 
Join Date: Jan 2005
Location: Lincoln / UK
Age: 44
Posts: 1,849
Send a message via ICQ to Mad-Matt Send a message via MSN to Mad-Matt
SysSpeed has very similar tests to P96Speed and may or may not offer more comparative results.
Mad-Matt is offline  
Old 21 January 2023, 17:01   #8
pixie
Registered User
 
pixie's Avatar
 
Join Date: May 2020
Location: Figueira da Foz
Posts: 362
Is there a common test that could be used on AROS/AmigaOS?
pixie is offline  
Old 22 January 2023, 12:12   #9
rutra80
Registered User
 
Join Date: Jul 2019
Location: Poland
Posts: 308
SysSpeed has nice graphics & intuition tests each running for 5 secs, but other tests run a given number of operations and in non-CE JIT mode finish almost immediately.

P96Speed works in both AROS & AmigaOS, I have problems running SysSpeed in AROS.

AROS seems to have some memory leaks in intuition so these tests often fail...
rutra80 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
WinUAE 4.10.0 — P96Speed issues in PAL Hires mode Brett Eden support.WinUAE 13 05 January 2023 13:30
Reliable supplier for A3660 PCB? DoctorXerox support.Hardware 2 25 August 2022 04:58
How reliable are Compact Flash Cards ? Nibbler support.Hardware 9 11 May 2016 12:40
Reliable memory test software alexh support.Hardware 2 26 May 2011 04:17
Which Amiga magazine would you say is most reliable for reviews? seuden Retrogaming General Discussion 21 04 February 2010 15:37

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:11.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07810 seconds with 13 queries