diff options
author | Marvin Borner | 2023-06-17 17:04:41 +0200 |
---|---|---|
committer | Marvin Borner | 2023-06-17 17:12:03 +0200 |
commit | fb588483addb542240935b30555dedf199ff5df3 (patch) | |
tree | 6a9ef443f967a1d41f27d1410856d4f680f62024 /readme.md | |
parent | 075378188e117b13d03b39b2f43726ab0a928d62 (diff) |
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -2,9 +2,20 @@ > efficiently sleeping with (sub-)nanosecond precision and asm threads +## Benchmarks + +With *good* numbers and *optimized* timeouts, sleepsort can achieve +similar performance as C’s `qsort`. + +Example using the included array in `data.asm`: + +``` bash +time ./sort # real 0.008s +time ./csort # real 0.002s +``` + ## Dependencies -- ed - nasm - gcc - make @@ -12,7 +23,12 @@ ## Usage ``` bash -ed sort.asm # edit array and choose coolsleep/boringsleep -make +$EDITOR data.asm # edit array +$EDITOR config.asm # choose syscall/busyloop strategy +./optim.sh # find optimal sleep timeout ./sort ``` + +## Usefulness + +None |