Debian Codegraph @

benches/lab_to_rgb.rs

raw symbols SCIP
1 #[macro_use]
2 extern crate criterionrust-analyzer cargo lab 0.11.0 criterion/;
3 #[macro_use]
4 extern crate lazy_staticrust-analyzer cargo lab 0.11.0 lazy_static/;
5 extern crate labrust-analyzer cargo lab 0.11.0 lab/;
6 extern crate randrust-analyzer cargo lab 0.11.0 rand/;
7
8 use criterionrust-analyzer cargo criterion 0.3.6 crate/::Criterionrust-analyzer cargo criterion 0.3.6 Criterion#;
9 use randrust-analyzer cargo rand 0.8.7 crate/::distributionsrust-analyzer cargo rand 0.8.7 distributions/::Standardrust-analyzer cargo rand 0.8.7 distributions/Standard#;
10 use randrust-analyzer cargo rand 0.8.7 crate/::Rngrust-analyzer cargo rand 0.8.7 rng/Rng#;
11
12 lazy_staticrust-analyzer cargo lazy_static 1.5.0 lazy_static!! {
13 static ref LABSrust-analyzer cargo lab 0.11.0 LABS#: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<labrust-analyzer cargo lab 0.11.0 crate/::Labrust-analyzer cargo lab 0.11.0 Lab#> = {
14 let rand_seed = [0u8; 32];
15 let rng: randrust-analyzer cargo rand 0.8.7 crate/::rngsrust-analyzer cargo rand 0.8.7 rngs/::StdRngrust-analyzer cargo rand 0.8.7 rngs/std/StdRng# = randrust-analyzer cargo rand 0.8.7 crate/::SeedableRngrust-analyzer cargo rand_core 0.6.4 SeedableRng#::from_seedrust-analyzer cargo rand 0.8.7 rngs/std/impl#[StdRng][SeedableRng]from_seed().(rand_seed);
16 let labs: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<[f32; 8]> = rng.sample_iterrust-analyzer cargo rand 0.8.7 rng/Rng#sample_iter().(&Standardrust-analyzer cargo rand 0.8.7 distributions/Standard#).takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#take().(512).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().();
17 labs.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().()
18 .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|lab| labrust-analyzer cargo lab 0.11.0 crate/::Labrust-analyzer cargo lab 0.11.0 Lab# {
19 lrust-analyzer cargo lab 0.11.0 Lab#l.: lab[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
20 arust-analyzer cargo lab 0.11.0 Lab#a.: lab[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
21 brust-analyzer cargo lab 0.11.0 Lab#b.: lab[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().,
22 })
23 .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()
24 };
25 }
26
27 fn labs_to_rgbsrust-analyzer cargo lab 0.11.0 labs_to_rgbs().(c: &mut Criterionrust-analyzer cargo criterion 0.3.6 Criterion#) {
28 c.bench_functionrust-analyzer cargo criterion 0.3.6 impl#[`Criterion<M>`]bench_function().("[Lab] -> [RGB]", move |b| {
29 b.iterrust-analyzer cargo criterion 0.3.6 bencher/impl#[`Bencher<'a, M>`]iter().(|| labrust-analyzer cargo lab 0.11.0 crate/::__scalarrust-analyzer cargo lab 0.11.0 __scalar/::labs_to_rgbsrust-analyzer cargo lab 0.11.0 __scalar/labs_to_rgbs().(&LABSrust-analyzer cargo lab 0.11.0 LABS.))
30 });
31 }
32
33 fn labs_to_rgb_bytesrust-analyzer cargo lab 0.11.0 labs_to_rgb_bytes().(c: &mut Criterionrust-analyzer cargo criterion 0.3.6 Criterion#) {
34 c.bench_functionrust-analyzer cargo criterion 0.3.6 impl#[`Criterion<M>`]bench_function().("[Lab] -> [u8]", move |b| {
35 b.iterrust-analyzer cargo criterion 0.3.6 bencher/impl#[`Bencher<'a, M>`]iter().(|| labrust-analyzer cargo lab 0.11.0 crate/::__scalarrust-analyzer cargo lab 0.11.0 __scalar/::labs_to_rgb_bytesrust-analyzer cargo lab 0.11.0 __scalar/labs_to_rgb_bytes().(&LABSrust-analyzer cargo lab 0.11.0 LABS.))
36 });
37 }
38
39 fn labs_to_rgbs_simdrust-analyzer cargo lab 0.11.0 labs_to_rgbs_simd().(c: &mut Criterionrust-analyzer cargo criterion 0.3.6 Criterion#) {
40 c.bench_functionrust-analyzer cargo criterion 0.3.6 impl#[`Criterion<M>`]bench_function().("[Lab] -> [RGB] (simd)", move |b| {
41 b.iterrust-analyzer cargo criterion 0.3.6 bencher/impl#[`Bencher<'a, M>`]iter().(|| labrust-analyzer cargo lab 0.11.0 crate/::labs_to_rgbsrust-analyzer cargo lab 0.11.0 labs_to_rgbs().(&LABSrust-analyzer cargo lab 0.11.0 LABS.))
42 });
43 }
44
45 fn labs_to_rgb_bytes_simdrust-analyzer cargo lab 0.11.0 labs_to_rgb_bytes_simd().(c: &mut Criterionrust-analyzer cargo criterion 0.3.6 Criterion#) {
46 c.bench_functionrust-analyzer cargo criterion 0.3.6 impl#[`Criterion<M>`]bench_function().("[Lab] -> [u8] (simd)", move |b| {
47 b.iterrust-analyzer cargo criterion 0.3.6 bencher/impl#[`Bencher<'a, M>`]iter().(|| labrust-analyzer cargo lab 0.11.0 crate/::labs_to_rgb_bytesrust-analyzer cargo lab 0.11.0 labs_to_rgb_bytes().(&LABSrust-analyzer cargo lab 0.11.0 LABS.))
48 });
49 }
50
51 criterion_grouprust-analyzer cargo criterion 0.3.6 macros/criterion_group!!(
52 benchesrust-analyzer cargo lab 0.11.0 benches().,
53 labs_to_rgbsrust-analyzer cargo lab 0.11.0 labs_to_rgbs().,
54 labs_to_rgb_bytesrust-analyzer cargo lab 0.11.0 labs_to_rgb_bytes().,
55 labs_to_rgbs_simdrust-analyzer cargo lab 0.11.0 labs_to_rgbs_simd().,
56 labs_to_rgb_bytes_simdrust-analyzer cargo lab 0.11.0 labs_to_rgb_bytes_simd().
57 );
58 criterion_mainrust-analyzer cargo criterion 0.3.6 macros/criterion_main!!(benchesrust-analyzer cargo lab 0.11.0 benches().);