The unagi-chan package

[ Tags: benchmark, bsd3, concurrency, library ] [ Propose Tags ]

This library provides implementations of concurrent FIFO queues (for both general boxed and primitive unboxed values) that are fast, perform well under contention, and offer a Chan-like interface. The library may be of limited usefulness outside of x86 architectures where the fetch-and-add instruction is not available.

We export several variations of our design; some support additional functionality while others try for lower latency by removing features or making them more restrictive (e.g. in the Unboxed variants).

Some of these may be deprecated in the future if they are found to provide little performance benefit, or no unique features; you should benchmark and experiment with them for your use cases, and please submit pull requests for additions to the benchmark suite that reflect what you find.

Here is an example benchmark measuring the time taken to concurrently write and read 100,000 messages, with work divided amongst increasing number of readers and writers, comparing against the top-performing queues in the standard libraries. The inset graph shows a zoomed-in view on the implementations here.

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.4.0.0
Change log CHANGELOG.markdown
Dependencies atomic-primops (>=0.8), base (<5), ghc-prim, primitive (>=0.5.3) [details]
License BSD3
Author Brandon Simmons
Maintainer brandon.m.simmons@gmail.com
Category Concurrency
Source repository head: git clone https://github.com/jberryman/unagi-chan.git -b master
Uploaded Wed Apr 15 20:59:57 UTC 2015 by BrandonSimmons
Distributions NixOS:0.4.0.0, Stackage:0.4.0.0, Tumbleweed:0.4.0.0
Downloads 3090 total (60 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-04-18 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
compare-benchmarksDisabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees