|
|
8 anni fa | |
|---|---|---|
| .. | ||
| .gitattributes | 8 anni fa | |
| .gitignore | 8 anni fa | |
| LICENSE | 8 anni fa | |
| README.md | 8 anni fa | |
| avx2_amd64.s | 8 anni fa | |
| nosimd.go | 8 anni fa | |
| sse2_amd64.s | 8 anni fa | |
| xor.go | 8 anni fa | |
| xor_amd64.go | 8 anni fa | |
| xor_other.go | 8 anni fa | |
| xor_test.go | 8 anni fa | |
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 |