From 6823e85a5d8119fd2babea285bda1b3e56dee8e2 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Sat, 18 Nov 2017 23:25:44 -0800 Subject: [PATCH 1/2] Add badges and benchmarks --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index e07ffa6..63a9111 100644 --- a/README.md +++ b/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. @@ -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 From bf9183f103d906da6e6461cb91a9d114cea64e13 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Sat, 18 Nov 2017 23:25:56 -0800 Subject: [PATCH 2/2] Bump to 0.2.0 --- Cargo.toml | 2 +- src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f65ce17..dffdfa6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Josh Stone "] 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"] diff --git a/src/lib.rs b/src/lib.rs index 80f2672..24ef87f 100644 --- a/src/lib.rs +++ b/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))]