Skip to content

wfouche/zpu-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zpu-bench

$ time ./zpu-bench
zpu-bench v0.0.3

CPU = 4
COUNTER_I64 = 43007015647
DURATION_MS = 14975
DOP = 2.003

real	0m53.167s
user	2m16.139s
sys	0m0.152s
// https://godbolt.org/
//
long countDownToZero(long n) {
    while (n) {
        n -= 1;
    }
    return n;
}
countDownToZero:
        testq   %rdi, %rdi
        je      .L2
.L3:
        subq    $1, %rdi
        jne     .L3
.L2:
        movl    $0, %eax
        ret

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published