Skip to content

Commit 6ad02d4

Browse files
committed
docs: add sample output with histogram to README
1 parent 0b5254c commit 6ad02d4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ gcc -O2 -o bench bench.c -lm
3434
./bench
3535
```
3636

37+
## Sample Output
38+
39+
```
40+
bench_example:
41+
20 samples × 1076000 evals, median: 1.003 ns
42+
Time (mean ± σ): 1.017 ns ± 0.044 ns
43+
Range (min … max): 0.975 ns … 1.110 ns
44+
45+
46+
▆█ ▁▆ ▁ ▁ ▁ ▆ ▁ ▆ ▁ ▁ ▁
47+
0.98 ns Histogram: frequency by time 1.11 ns
48+
```
49+
3750
## Features
3851

3952
- High-precision timing (mach_time on macOS, clock_gettime on Linux)

0 commit comments

Comments
 (0)