PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

2D benchmark

Image

This benchmark is testing 2D performances of pocketpc and is currently in beta test, you could download it here

Unzip the file, copy the exe and data.pak in the root directory of your device, launch it (the exe) and return your opinion about it in this forum.

Thanks..
Cool, I was looking for something like that, great work... and it looks good too :)

BTW. I got index: 1066 on my HP Jornada 568
okku wrote:
Cool, I was looking for something like that, great work... and it looks good too :)

BTW. I got index: 1066 on my HP Jornada 568


Thanks :)

I'll add an automatic screenshot of the results page, but for now I'am trying to package it, with icon etc, installer, etc...
I get an error that says it cant find one of its components. I have both files in my base directory on my Axim.
DillRye wrote:
I get an error that says it cant find one of its components. I have both files in my base directory on my Axim.


Ok, it need gx.dll and zlibce.dll installed...

I'am making the beta 2 with a correct installer and all the needed files...
What does the resulting number mean?
beta 2 is here
StephC: What exactly is it you are measuring? If you are measuring raw GX fill backbuffer performance, why not measure it in kB/sec or something similar?
Johan wrote:
StephC: What exactly is it you are measuring? If you are measuring raw GX fill backbuffer performance, why not measure it in kB/sec or something similar?


I'am simply measuring the perfs of some classic 2D graphic code..

Measuring pure memory bandwitdh is not very useful, we need something real to compare ppc, and pocketquake is not that good for the job in my opinion.
I'm sorry but I disagree. Pure memory bandwidth is exactly the number you want. You also need the cost of a cache miss and some idea of the CPU execution speed.

Just because your test runs 30% slower on an e750 compared with an iPaq (for example), that doesn't mean my code is also going to run 30% slower. However, if you give me the relative difference in raw memory bandwidth I'll have a pretty good idea of how much slower/faster my code will execute.
Digby wrote:
I'm sorry but I disagree. Pure memory bandwidth is exactly the number you want. You also need the cost of a cache miss and some idea of the CPU execution speed.

Just because your test runs 30% slower on an e750 compared with an iPaq (for example), that doesn't mean my code is also going to run 30% slower. However, if you give me the relative difference in raw memory bandwidth I'll have a pretty good idea of how much slower/faster my code will execute.


In fact I think that it's near impossible to get the perfect benchmark.

Memory bandwidth is only one of several aspects.

FlipScreen is an other, cache miss cost, CPU raw power, LCD DMA frequency (not the same on all devices), etc, etc

GXBenchmark is intended to give a good idea of the perf of some heavily optimised 2D routines which are more likely to represent a game than a memory bandwidth test.

But if you give me some advices on how to make a good memory bandwidth test I'll add it to the next release of GXBenchmark.
some results :

h2215
Image

h5555
Image

h3970
Image

asus a620
Image

xda
Image
Memory bandwidth is far more useful to the developer of a blit routine or a 3D pipeline than an end-user "typical" scenario would be.

Knowing that the memory bandwidth is less on one device over another gives me a good indication of *why* my blit routine is slower on that device. The test you've written only tells me that it is slower (provided I write my blit routines the same as you do).

Anway, I certainly don't want to start a big argument over this. I think what you've written is a good thing, especially if I were out shopping for a new Pocket PC device. I'd like to hear what Johan, Dan, Refractor and others think. If there is enough interest in "raw" benchmark data such as memory bandwidth, I'll do a brain dump here.
Haven't got time to comment now (my 45GB boot drive - an IBM "DeathStar" has dropped dead :? ). Treat this as a placeholder for comments I'll write tomorrow at work. ;)
There is know way a asus a620 is more than twice the speed of an IPAQ 3600... I'd even put money on the 3600 bveing the faster of the two!! Just look at the Flip Screen results... surely the smaller the number the better... how did you calculate the bar graph for the Flip Screen as it seems all wrong. Checkout the asus a620 with a Flip Screen of 10ms compared to the IPAQ of 5ms... why is the bar so long?
err.. It's 1.0ms and not 10ms :)

The asus a620 is really the fastest device on the market.
Here's the Axim PXA250 benchmarks at 200MHz and 300MHz. Not too impressive. It should be interesting to run the test again in a couple of weeks once I have the WM2003 update.

(200MHz left - 300MHz right)
<img src='http://home.earthlink.net/~majesto/axim200_pxa250.gif'> <img src='http://home.earthlink.net/~majesto/axim300_pxa250.gif'>
I've got better results with a 300Mhz Axim...

Hmm...

Image
Presto : have you experienced some kind of short freezing of the display during the test ?
There are occassionally very short stutters during the test (I'd guess right around 1/20th of a second (.05)). Removing the CF and SD cards and making sure no other programs were running gave me slightly higher benchmarks.

StephC,
What's your Axim's configuration? PXA250 or PXA255? Is it PPC2002 or WM2003?

Thanks,
-John
Unfortunately IMHO this test is of no use to anyone except for StephC. For example:

1. FlipScreen
What exactly is it you are measuring here? Do you check if the device is double buffered? If you simply do a fast memcopy to the GX backbuffer and then call GXEndDraw/GXBeginDraw your application will run slower on double buffered devices (where you only need to call GXEndDraw/GXBeginDraw for the flip and would need to measure that). I argue that separate time measures for (a) memory block copy to the GX backbuffer, and (b) calling a GXEndDraw/GXBeginDraw, would be needed. We also need to know if you use memcpy or a fast ldmia/stdmia block copy.

2. 512 ColorKeyed Sprites
How large are these sprites? How are they stored? RLE-encoded? How large is the bitmap image where they are stored? We would need the exact width and height of the source image if the images are not RLE-stored. If they are RLE-stored then this test measures lots of other stuff such as processor performance. Also, are you reading and writing multiple pixels simultaneously using 32-bit reads and writes? If so, how many of the 512 sprites are stored on aligned memory addresses?

Above I have only surfaced some of my questions I would need answers to relating two of these tests for the results to be of any use to me. Perhaps other people find the results more useful than I do.
I'm guessing it's more useful to consumers (in the sense of 3DMark) than a developer looking to optimize code.
"Lies, damn lies, and statistics" - Benjamin Disraeli

Ok. So far as a "consumer" benchmark goes, this one is as good, or as bad, as the standard consumer "gaming" benchmarks. It gives users numbers to compare... for certain, perhaps esoteric, tasks.

Essentially, I agree with Digby/Johan on this. I'm far more interested in "raw" crunching power/memory bandwidth than I am in "synthetic" numbers like how many RLE encoded sprites a certain routine can blit to a screen per second. It really doesn't matter if the routine is "optimised" or not - if that's an unknown quantity then so is everything else.

I'd prefer a more comprehensive "raw" set of benchmarks - cache miss penalties, the actual r/w bandwidth of cached and uncached areas, right through to the more "generic" dhrystone, etc, tests (which although synthetic aren't entirely esoteric).

But then I'm a developer.
Johan/Digby/Refractor: I understand that this benchmark is not very useful to you, but I don't think that telling Stephane his benchmark is useless is very constructive.

It does have its uses and I question why you gang on him... This benchmark may indeed be very useful to him and for a lot of other people who wants to know what device is the fastest. I sure do appreciate his work on this as no one else has proposed anything.

Any benchmark will have it's flaws (and they are ALL synthetics), there is simply no way around it.
Where is "benchmark.tga" being saved? I've been looking for 10 minutes now!
Thierry + StephC - I didn't mean to imply (and I certainly didn't state) that I thought that it was "useless". In fact I was very careful to not do that. I said what I am interested in, as a programmer and stated my comments with that proviso.

As that's obviously not what's wanted here in the developer forum, I'll just keep my mouth shut and not respond to posts any more?

As for ganging up, perhaps we just share the same perspective...

Any benchmark will have it's flaws (and they are ALL synthetics), there is simply no way around it.
Quite - I think we're all agreed on that.
It was never my intention to critizise StephC on the benchmark. My apologies if it was seen that way. My intention was to provide some constructive comments as to what information I would need for the benchmark to be useful to me, as a developer.
If you install the version from here: http://int13.net/gxmarkbeta/ the benchmark.tga files are located in the \Program Files\GXBenchmark directory.

And if you do run the test, I think you'll see it actually does a lot of things you could expect your game to do. I think it's useful.
Johan wrote:
Unfortunately IMHO this test is of no use to anyone except for StephC. For example:

1. FlipScreen
What exactly is it you are measuring here? Do you check if the device is double buffered? If you simply do a fast memcopy to the GX backbuffer and then call GXEndDraw/GXBeginDraw your application will run slower on double buffered devices (where you only need to call GXEndDraw/GXBeginDraw for the flip and would need to measure that). I argue that separate time measures for (a) memory block copy to the GX backbuffer, and (b) calling a GXEndDraw/GXBeginDraw, would be needed. We also need to know if you use memcpy or a fast ldmia/stdmia block copy.


Could you give an example of double buffered device ?


Johan wrote:
2. 512 ColorKeyed Sprites
How large are these sprites? How are they stored? RLE-encoded? How large is the bitmap image where they are stored? We would need the exact width and height of the source image if the images are not RLE-stored. If they are RLE-stored then this test measures lots of other stuff such as processor performance. Also, are you reading and writing multiple pixels simultaneously using 32-bit reads and writes? If so, how many of the 512 sprites are stored on aligned memory addresses?


I've tried to use state of the art code for thoses routines, so indeed RLE encoded sprites, 32 bits read and writes etc.. And the sprite used for the colorkeyed test is the one that you use in the gapidraw test.

Johan wrote:
Above I have only surfaced some of my questions I would need answers to relating two of these tests for the results to be of any use to me. Perhaps other people find the results more useful than I do.


I also think that this benchmark will be more useful to users than coders...

But as I've said I could add deeper test routine such as memory bandwidth etc...
StephC,

Was your Axim PXA250 or PXA255 with PPC2002 or WM2003?

Thanks, John
It's not my axim, but it's a pxa250 and ppc2002.
(I think)
StephC: If I remember correctly the E740 was double buffered (because I couldn't see any tearing on it in either direction)... I haven't used it for some months now though so I might be mistaken...
Johan wrote:
StephC: If I remember correctly the E740 was double buffered (because I couldn't see any tearing on it in either direction)... I haven't used it for some months now though so I might be mistaken...


Interesting, but we need to know...

Could you check that ?
Just a quick note of encouragement to StephC.

It seems that if the application is extended to include some of the other tests mentioned, it can be useful both to the programmers and also to consumers.

Keep up the good work! :D
At least someone is working on a benchmark that does more than dhrystone tests, not that there's anything wrong with them.

An accurate page flipping and memory bandwidth test would be something that I'd really like to have.

Anyway, keep it up!

--Eric

PS: the screen is upside-down on my iPaq 3850!