Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce buzhash chunker #6701

Merged
merged 4 commits into from
Oct 7, 2019
Merged

Introduce buzhash chunker #6701

merged 4 commits into from
Oct 7, 2019

Conversation

Kubuxu
Copy link
Member

@Kubuxu Kubuxu commented Oct 7, 2019

It has the same properties as Rabin but is much faster. Benchmark results of just chunkers:

name             speed
Buzhash2/1K-4    1.71GB/s ± 4%
Buzhash2/1M-4    1.15GB/s ± 2%
Buzhash2/16M-4    892MB/s ± 1%
Buzhash2/100M-4   904MB/s ± 2%
Rabin/1K-4       13.8MB/s ± 3%
Rabin/1M-4        171MB/s ± 3%
Rabin/16M-4       182MB/s ± 4%
Rabin/100M-4      182MB/s ± 3%
Default/1K-4     1.74GB/s ± 4%
Default/1M-4     3.22GB/s ± 2%
Default/16M-4    3.88GB/s ± 2%
Default/100M-4   4.21GB/s ± 6%

Jakub Sztandera added 2 commits October 7, 2019 18:06
It has the same properties as Rabin but is much faster.
Benchmark results:

```
name             speed
Buzhash2/1K-4    1.71GB/s ± 4%
Buzhash2/1M-4    1.15GB/s ± 2%
Buzhash2/16M-4    892MB/s ± 1%
Buzhash2/100M-4   904MB/s ± 2%
Rabin/1K-4       13.8MB/s ± 3%
Rabin/1M-4        171MB/s ± 3%
Rabin/16M-4       182MB/s ± 4%
Rabin/100M-4      182MB/s ± 3%
Default/1K-4     1.74GB/s ± 4%
Default/1M-4     3.22GB/s ± 2%
Default/16M-4    3.88GB/s ± 2%
Default/100M-4   4.21GB/s ± 6%
```

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
@Kubuxu Kubuxu changed the title Introduce buzhash chunker It has the same properties as Rabin but is much faster. Benchmark results of just chunkers: Introduce buzhash chunker Oct 7, 2019
@Kubuxu Kubuxu requested a review from Stebalien October 7, 2019 17:46
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit.

test/sharness/t0040-add-and-cat.sh Outdated Show resolved Hide resolved
@Kubuxu
Copy link
Member Author

Kubuxu commented Oct 7, 2019

Thanks.

@Kubuxu Kubuxu merged commit 01b357a into master Oct 7, 2019
@Kubuxu Kubuxu deleted the feat/buzhash branch October 7, 2019 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants