Huh
julia> using Random, Chairmarks
julia> Random.seed!(0);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
8.739 μs (14.00 allocs: 432.278 bytes)
julia> Random.seed!(0);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
16.496 ns
julia> Random.seed!(1);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
28.667 ns
julia> Random.seed!(1);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
19.667 ns
julia> versioninfo()
Julia Version 1.10.1
Commit 7790d6f064 (2024-02-13 20:41 UTC)
Platform Info:
OS: Linux (x86_64-redhat-linux)
CPU: 28 × Intel(R) Core(TM) i9-9940X CPU @ 3.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, skylake-avx512)
Threads: 28 default, 0 interactive, 14 GC (on 28 virtual cores)
Environment:
JULIA_PATH = @.
LD_LIBRARY_PATH = /usr/local/lib/x86_64-unknown-linux-gnu/:/usr/local/lib/:/usr/local/lib/x86_64-unknown-linux-gnu/:/usr/local/lib/
JULIA_NUM_THREADS = 28
LD_UN_PATH = /usr/local/lib/x86_64-unknown-linux-gnu/:/usr/local/lib/
EDIT:
Maybe my random stream is simply different.
julia> Random.seed!(2);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
34.000 ns
julia> Random.seed!(3);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
29.000 ns
julia> Random.seed!(4);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
29.000 ns
julia> Random.seed!(5);
julia> @b rand((1, 0.0, 1+5im, big(5), big(1.0))) sin
16.531 ns