Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Merge #16
Browse files Browse the repository at this point in the history
16: Add badges and benchmarks, and release 0.2.0 r=cuviper a=cuviper
  • Loading branch information
bors[bot] committed Nov 19, 2017
2 parents 5dcf178 + bf9183f commit aa75a45
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,7 +1,7 @@
[package]
authors = ["Josh Stone <cuviper@gmail.com>"]
name = "rayon-hash"
version = "0.1.0"
version = "0.2.0"
repository = "https://github.com/rayon-rs/rayon-hash"
documentation = "https://docs.rs/rayon-hash/"
keywords = ["parallel", "iterator", "hash", "map", "set"]
Expand Down
11 changes: 11 additions & 0 deletions README.md
@@ -1,5 +1,9 @@
# Rayon Hash

[![rayon-hash crate](https://img.shields.io/crates/v/rayon-hash.svg)](https://crates.io/crates/rayon-hash)
[![rayon-hash documentation](https://docs.rs/rayon-hash/badge.svg)](https://docs.rs/rayon-hash)
[![Travis Status](https://travis-ci.org/rayon-rs/rayon-hash.svg?branch=master)](https://travis-ci.org/rayon-rs/rayon-hash)

The `rayon-hash` crate duplicates the standard `HashMap` and `HashSet`, adding
native support for Rayon parallel iterators.

Expand All @@ -8,6 +12,13 @@ can't access internal fields, it has to collect to an intermediate vector to be
split into parallel jobs. With the custom types in `rayon-hash`, we can
instead read the raw hash table directly, for much better performance.

```text
test rayon_set_sum_parallel ... bench: 1,077,602 ns/iter (+/- 50,610)
test rayon_set_sum_serial ... bench: 6,363,125 ns/iter (+/- 101,513)
test std_set_sum_parallel ... bench: 8,519,683 ns/iter (+/- 219,785)
test std_set_sum_serial ... bench: 6,295,263 ns/iter (+/- 98,600)
```

This crate currently requires `rustc 1.21.0` or greater.

## Known limitations
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
@@ -1,3 +1,5 @@
#![doc(html_root_url = "https://docs.rs/rayon-hash/0.2")]

#![cfg_attr(rayon_hash_unstable, feature(fused))]
#![cfg_attr(rayon_hash_unstable, feature(placement_new_protocol))]

Expand Down

0 comments on commit aa75a45

Please sign in to comment.