lordie…what is this? can someone give me a pointer, please?
PS: May I point out that ns are not comparable across computers?
Yeah, just tried on another computer, and the SVector version is just slightly faster:
julia> @benchmark orig($xset, $yset)
BenchmarkTools.Trial:
memory estimate: 1.31 KiB
allocs estimate: 8
--------------
minimum time: 407.743 ns (0.00% GC)
median time: 430.580 ns (0.00% GC)
mean time: 500.106 ns (10.39% GC)
maximum time: 6.392 μs (88.50% GC)
--------------
samples: 10000
evals/sample: 206
julia> @benchmark svec($xset, $yset)
BenchmarkTools.Trial:
memory estimate: 1.91 KiB
allocs estimate: 10
--------------
minimum time: 404.726 ns (0.00% GC)
median time: 425.562 ns (0.00% GC)
mean time: 544.980 ns (19.62% GC)
maximum time: 7.589 μs (90.31% GC)
--------------
samples: 10000
evals/sample: 201