Shop OBEX P1 Docs P2 Docs Learn Events
Dhrystone demo good for benchmarking? — Parallax Forums

Dhrystone demo good for benchmarking?

RaymanRayman Posts: 14,665
edited 2013-03-28 11:54 in Propeller 1
I'm playing around with the Dhrystone demo...
Is this a good benchmark for comparing memory modes?
How about for comparing P1 to P2?

BTW: Here's what I get on the regular P1 demo board:
2801 with -O0
5813 with -Os
5336 with -O1
7183 with -O2

It doesn't work when compiled with -mcmm... Should it?

BTW2: I looked on wikipedia and this puts us right around a 386SX/25, if I'm reading it correctly...

Comments

  • ersmithersmith Posts: 6,054
    edited 2013-03-28 11:51
    Rayman wrote: »
    I'm playing around with the Dhrystone demo...
    Is this a good benchmark for comparing memory modes?
    It's a decent overall benchmark. No single benchmark can capture all the parameters that change with different compiler and memory options, of course, so your results may vary.
    It doesn't work when compiled with -mcmm... Should it?
    It certainly should -- it does for me. Which version of Dhrystone are you using? How are you compiling it? I just tried with "make MODEL=cmm" and got 544 dhrystones/second with -O0; with "make MODEL=cmm OPT=-O2" I got 2025 dhrystones/second.

    Eric
  • jazzedjazzed Posts: 11,803
    edited 2013-03-28 11:53
    Rayman wrote: »
    I'm playing around with the Dhrystone demo...
    It doesn't work when compiled with -mcmm... Should it?

    Yes, it should.

    As far as memory models go, IIRC you have to turn off optimization to get any meaningful comparisons. But you can't turn them off permanently :)
  • RaymanRayman Posts: 14,665
    edited 2013-03-28 11:54
    I think I'm using the version that came with PropGCC, located here:
    C:\propgcc\demos\dhrystone

    BTW: I just noticed that the very latest PropGCC doesn't have the "demos"... Is that on purpose?
Sign In or Register to comment.