summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authordavej <davej>2003-01-23 02:04:05 +0000
committerdavej <davej>2003-01-23 02:04:05 +0000
commitf838bf061ed7c8b034b8b1df2ea97dbb70009d39 (patch)
tree46c48b2dfbb16ddeb29b6e2c9e19b176b0c374fc /bench
parent715b240a03eb6d21ac1968b7fb07bc6dfbca00f8 (diff)
couple of extra benchmarks
Diffstat (limited to 'bench')
-rw-r--r--bench/benchmarks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/benchmarks.c b/bench/benchmarks.c
index caff045..2ffc069 100644
--- a/bench/benchmarks.c
+++ b/bench/benchmarks.c
@@ -16,6 +16,8 @@ void show_benchmarks()
TIME(asm volatile("int $0x80" :"=a" (ret) :"0" (__NR_getppid)), "int 0x80");
TIME(asm volatile("cpuid": : :"ax", "dx", "cx", "bx"), "cpuid");
- TIME(asm volatile("lock ; addl $0,0(%esp)"), "locked add");
+ TIME(asm volatile("addl $1,0(%esp)"), "addl");
+ TIME(asm volatile("lock ; addl $1,0(%esp)"), "locked add");
+ TIME(asm volatile("lea 1(%eax),%eax"), "lea 1(%%eax),%%eax");
}