summaryrefslogtreecommitdiff
path: root/bench/benchmarks.c
diff options
context:
space:
mode:
Diffstat (limited to 'bench/benchmarks.c')
-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");
}