Re: Efficient x86 and x86_64 NOP microbenchmarks

From: Steven Rostedt
Date: Wed Aug 13 2008 - 16:36:34 EST



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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/