Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Nov 15, 2024
1 parent 735cf69 commit bf821ef
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions jsSite/src/BenchmarkPlots.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,22 @@ object BenchmarkPlots:
write(thePlot)
end countTrueBenchmark

def andBooleanBenchmark =
val thePlot = BenchmarkPlotElements.schema ++
BenchmarkPlotElements.data("../../benchmarks/benchmark_history.json") ++
(transform =
BenchmarkPlotElements.transform(
List("AndBooleanBenchmark.and_loop", "AndBooleanBenchmark.and_loop_vec")
)
) ++
(vconcat =
List(
BenchmarkPlotElements.layer(3, "len"),
BenchmarkPlotElements.layer(128, "len"),
BenchmarkPlotElements.layer(100000, "len")
)
)
write(thePlot)
end andBooleanBenchmark

end BenchmarkPlots
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,14 @@ showJsDocs.fromSpec(BenchmarkPlots.countTrueBenchmark, node)

```

Doing an "and" operation

```scala mdoc:js sc:nocompile
import vecxt.plot.*
import vecxt.facades.*
showJsDocs.fromSpec(BenchmarkPlots.countTrueBenchmark, node)

```

# Conclusion
Boolean processing gains massive benefits from SIMD.

0 comments on commit bf821ef

Please sign in to comment.