Mercurial > repos > public > sbplib_julia
annotate benchmark/benchmarks.jl @ 1190:1aca445216b8 tooling/benchmarks
Clean up todos
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 27 Jan 2023 12:40:01 +0100 |
| parents | 3e4db8cf1d92 |
| children | 5d4a15d6118f |
| rev | line source |
|---|---|
| 1171 | 1 using BenchmarkTools |
| 2 using Random | |
| 3 | |
| 4 const SUITE = BenchmarkGroup() | |
| 5 | |
| 6 SUITE["utf8"] = BenchmarkGroup(["string", "unicode"]) | |
| 7 teststr = String(join(rand(MersenneTwister(1), 'a':'d', 10^4))) | |
| 8 SUITE["utf8"]["replace"] = @benchmarkable replace($teststr, "a" => "b") | |
| 9 SUITE["utf8"]["join"] = @benchmarkable join($teststr, $teststr) | |
| 10 SUITE["utf8"]["plots"] = BenchmarkGroup() | |
| 11 | |
| 12 SUITE |
