Skip to content

Commit

Permalink
add benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kilic committed Feb 5, 2020
1 parent b3ce708 commit 4c0066a
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 @@ -55,3 +55,27 @@ pStr := "0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001"
pBytes, _ := hex.DecodeString(pStr[2:])
field := newField(pBytes)
```
## Benchmark
Benchmarked on 2,7 GHz i5 machine
Table below shows multiplication delays corresponding field sizes in bits.
```
128: 10.5 ns/op
192: 15.8 ns/op
256: 23.9 ns/op
320: 33.3 ns/op
384: 43.4 ns/op
448: 59.2 ns/op
512: 67.2 ns/op
576: 81.9 ns/op
640: 103 ns/op
704: 130 ns/op
768: 153 ns/op
832: 177 ns/op
896: 202 ns/op
960: 228 ns/op
1024: 256 ns/op
```

0 comments on commit 4c0066a

Please sign in to comment.