using PairwiseListMatrices
using BenchmarkTools
using Base.Test
INFO: Recompiling stale cache file /home/dzea/.julia/lib/v0.5/PairwiseListMatrices.ji for module PairwiseListMatrices. WARNING: Method definition require(Symbol) in module Base at loading.jl:345 overwritten in module Main at /home/dzea/.julia/v0.5/Requires/src/require.jl:12.
PLM = PairwiseListMatrix{Float64,false,Vector{Float64}}[ ones(PairwiseListMatrix(collect(1.:(100*99*0.5)))) for i in 1:100 ];
MAT = ones(Float64, 100, 100, 100);
@test all(std(MAT, 3) .== std(PLM))
Test Passed Expression: all(std(MAT,3) .== std(PLM))
@benchmark std(MAT,3)
BenchmarkTools.Trial: memory estimate: 157.33 kb allocs estimate: 21 -------------- minimum time: 1.057 ms (0.00% GC) median time: 1.135 ms (0.00% GC) mean time: 1.146 ms (0.31% GC) maximum time: 2.603 ms (0.00% GC) -------------- samples: 4356 evals/sample: 1 time tolerance: 5.00% memory tolerance: 1.00%
@benchmark std(PLM)
BenchmarkTools.Trial: memory estimate: 237.06 kb allocs estimate: 22 -------------- minimum time: 528.528 μs (0.00% GC) median time: 545.675 μs (0.00% GC) mean time: 561.644 μs (0.96% GC) maximum time: 1.356 ms (0.00% GC) -------------- samples: 8889 evals/sample: 1 time tolerance: 5.00% memory tolerance: 1.00%