Skip to content

Commit

Permalink
Add benchmark for reading from stream
Browse files Browse the repository at this point in the history
  • Loading branch information
mfsch committed Sep 1, 2024
1 parent 38388b6 commit 3015acb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions perf/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ function load_samples(samples; verbose)
bmks["load"] = @benchmarkable LAS($sample)
bmks["readpts"] = @benchmarkable LAS($sample; read_points = true)
bmks["collect"] = @benchmarkable collect($las)
bmks["coords"] = @benchmarkable coordinates($las, 1:$npts)
bmks["intensity"] = @benchmarkable intensity($las, :)
bmks["coords"] = @benchmarkable coordinates($las)
bmks["intensity"] = @benchmarkable intensity($las)
bmks["random"] = @benchmarkable getindex($las, rand(1:$npts))
bmks["iterate"] = @benchmarkable (for pt in $las; pt; end)
if endswith(sample, "las")
bmks["stream"] = @benchmarkable LAS($sample; read_points = :stream)
end
suite[basename(sample)] = bmks
end
verbose && println(suite)
Expand Down

0 comments on commit 3015acb

Please sign in to comment.