Re: Efficient x86 and x86_64 NOP microbenchmarks

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: Jeremy Fitzhardinge <jeremy@...>, Andi Kleen <andi@...>, Thomas Gleixner <tglx@...>, Linus Torvalds <torvalds@...>, Steven Rostedt <rostedt@...>, LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, Peter Zijlstra <peterz@...>, Andrew Morton <akpm@...>, David Miller <davem@...>, Roland McGrath <roland@...>, Ulrich Drepper <drepper@...>, Rusty Russell <rusty@...>, Gregory Haskins <ghaskins@...>, Arnaldo Carvalho de Melo <acme@...>, Luis Claudio R. Goncalves <lclaudio@...>, Clark Williams <williams@...>
Date: Wednesday, August 13, 2008 - 4:34 pm

Just a curious run of Mathieu's micro benchmark:

NR_TESTS 10000000
                       test empty cycles : 182500444
                test 2-bytes jump cycles : 195969127
                test 5-bytes jump cycles : 197000202
                    test 3/2 nops cycles : 201333408
test 5-bytes nop with long prefix cycles : 205000067
              test 5-bytes P6 nop cycles : 205000227
    test Generic 1/4 5-bytes nops cycles : 200000077
         test K7 1/4 5-bytes nops cycles : 197549045


And this was on a Pentium III 847.461 MHz box (my old toshiba laptop)

The jumps here played the best, but that could just be cache issues. But 
interesting to see that of the nops, the K7 1/4 faired the best.

-- Steve

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Efficient x86 and x86_64 NOP microbenchmarks, Steven Rostedt, (Wed Aug 13, 4:00 pm)
Re: Efficient x86 and x86_64 NOP microbenchmarks, Andi Kleen, (Wed Aug 13, 4:15 pm)
Re: Efficient x86 and x86_64 NOP microbenchmarks, Steven Rostedt, (Wed Aug 13, 4:21 pm)
Re: Efficient x86 and x86_64 NOP microbenchmarks, Linus Torvalds, (Wed Aug 13, 4:21 pm)
Re: Efficient x86 and x86_64 NOP microbenchmarks, Jeremy Fitzhardinge, (Wed Aug 13, 4:06 pm)
Re: Efficient x86 and x86_64 NOP microbenchmarks, Steven Rostedt, (Wed Aug 13, 4:34 pm)