aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorMarvin Borner2023-06-17 17:04:41 +0200
committerMarvin Borner2023-06-17 17:12:03 +0200
commitfb588483addb542240935b30555dedf199ff5df3 (patch)
tree6a9ef443f967a1d41f27d1410856d4f680f62024 /readme.md
parent075378188e117b13d03b39b2f43726ab0a928d62 (diff)
Added optimizerHEADmain
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md22
1 files changed, 19 insertions, 3 deletions
diff --git a/readme.md b/readme.md
index 2531502..0acdb1d 100644
--- a/readme.md
+++ b/readme.md
@@ -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