Skip to content

Commit

Permalink
Added benchmarks to README
Browse files Browse the repository at this point in the history
  • Loading branch information
dechristopher committed Feb 21, 2021
1 parent 05e776a commit f3110aa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,28 @@ Drawn by Insufficient Material
6.d4=Q# 1-0
White wins by Checkmate
```

## Performance

**octad** has been performance tuned, using
[pprof](https://golang.org/pkg/runtime/pprof/), with the goal of being fast
enough for use by octad bots and engines. This implementation relies heavily
on the use of [bitboards](https://chessprogramming.wikispaces.com/Bitboards),
resulting in very solid computational performance.

### Benchmarks

The benchmarks can be run with the following command:
```
go test -bench=.
```

Results from the baseline 2019 16" MBP:
```
BenchmarkBitboardReverse-12 1000000000 0.000016 ns/op
BenchmarkStalemateStatus-12 971688 1220 ns/op
BenchmarkInvalidStalemateStatus-12 1387780 857 ns/op
BenchmarkPositionHash-12 1429471 841 ns/op
BenchmarkValidMoves-12 235640 4992 ns/op
```

0 comments on commit f3110aa

Please sign in to comment.