fatedier 0f1005ff61 using glide | 7 gadi atpakaļ | |
---|---|---|
.. | ||
.gitattributes | 7 gadi atpakaļ | |
.gitignore | 7 gadi atpakaļ | |
LICENSE | 7 gadi atpakaļ | |
README.md | 7 gadi atpakaļ | |
avx2_amd64.s | 7 gadi atpakaļ | |
nosimd.go | 7 gadi atpakaļ | |
sse2_amd64.s | 7 gadi atpakaļ | |
xor.go | 7 gadi atpakaļ | |
xor_amd64.go | 7 gadi atpakaļ | |
xor_other.go | 7 gadi atpakaļ | |
xor_test.go | 7 gadi atpakaļ |
XOR code engine in pure Go
more than 10GB/S per core
To get the package use the standard:
go get github.com/templexxx/xor
See the associated GoDoc
Performance depends mainly on:
Example of performance on my MacBook 2014-mid(i5-4278U 2.6GHz 2 physical cores). The 16MB per shards.
speed = ( shards * size ) / cost
data_shards | shard_size | speed (MB/S) |
---|---|---|
2 | 1KB | 64127.95 |
2 | 1400B | 59657.55 |
2 | 16KB | 35370.84 |
2 | 16MB | 12128.95 |
5 | 1KB | 78837.33 |
5 | 1400B | 58054.89 |
5 | 16KB | 50161.19 |
5 | 16MB | 12750.41 |