Results 1 to 3 of 3

Thread: What to include in a benchmark tool

  1. #1
    Join Date
    Feb 2011
    Location
    Great White North
    Beans
    128
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Lightbulb What to include in a benchmark tool

    Hi, I plan on making a small benchmarking tool that will test the cpu, and give it a score afterward. I wonder what sort of tests I should incorporate. I plan to do jumps and numerous mathematical equations to test the cpu. Also should I use assembly to make the benchmark or is C good. I know assembly would give more control but I wonder if C could be used too.
    VHDL and C FTW

    Designing a custom CPU based on MIPS

  2. #2
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: What to include in a benchmark tool

    If you want the results of your benchmarks to be meaningful, stay away from assembler. In fact, most modern programs do not have an assembler part anymore, even for the computation-heavy stuff. As a consequence, processor makers have optimized their processors towards the code of the form "typical" for what compilers produce.

    If you now take custom assembler code, what you are actually measuring is which processor type happens to work well with the "assembler style" that you are using (e.g., how well you avoid pipeline stalls, etc.), which is nothing that tells you anything about execution speed in practice.

  3. #3
    Join Date
    Feb 2011
    Location
    Great White North
    Beans
    128
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: What to include in a benchmark tool

    I want to evalute the performance of the processor such as branch prediction and the speed of execution units. Should I use C or Assembly for that. I plan not to make it a real world benchmark, just a low level one.
    VHDL and C FTW

    Designing a custom CPU based on MIPS

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •