Struct rayon_logs::ThreadPool[][src]

pub struct ThreadPool { /* fields omitted */ }

We wrap rayon's pool into our own struct to overload the install method.

Methods

impl ThreadPool
[src]

Execute given closure in the thread pool, logging it's task as the initial one. After running, we post-process the logs and return a RunLog together with the closure's result.

We automatically benchmark and compare two algorithms. We run 300 tests for each algorithm. Each time we prepare the experiment and launch both algorithms. We display some statistics on running times and compare both average and best runs. Output is saved on given html file.

Auto Trait Implementations

impl Send for ThreadPool

impl Sync for ThreadPool