Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1189:525015283843 | 1190:1aca445216b8 |
|---|---|
| 7 teststr = String(join(rand(MersenneTwister(1), 'a':'d', 10^4))) | 7 teststr = String(join(rand(MersenneTwister(1), 'a':'d', 10^4))) |
| 8 SUITE["utf8"]["replace"] = @benchmarkable replace($teststr, "a" => "b") | 8 SUITE["utf8"]["replace"] = @benchmarkable replace($teststr, "a" => "b") |
| 9 SUITE["utf8"]["join"] = @benchmarkable join($teststr, $teststr) | 9 SUITE["utf8"]["join"] = @benchmarkable join($teststr, $teststr) |
| 10 SUITE["utf8"]["plots"] = BenchmarkGroup() | 10 SUITE["utf8"]["plots"] = BenchmarkGroup() |
| 11 | 11 |
| 12 # SUITE["trigonometry"] = BenchmarkGroup(["math", "triangles"]) | |
| 13 # SUITE["trigonometry"]["circular"] = BenchmarkGroup() | |
| 14 # for f in (sin, cos, tan) | |
| 15 # for x in (0.0, pi) | |
| 16 # SUITE["trigonometry"]["circular"][string(f), x] = @benchmarkable ($f)($x) | |
| 17 # end | |
| 18 # end | |
| 19 | |
| 20 # SUITE["trigonometry"]["hyperbolic"] = BenchmarkGroup() | |
| 21 # for f in (sin, cos, tan) | |
| 22 # for x in (0.0, pi) | |
| 23 # SUITE["trigonometry"]["hyperbolic"][string(f), x] = @benchmarkable ($f)($x) | |
| 24 # end | |
| 25 # end | |
| 26 | |
| 27 SUITE | 12 SUITE |
| 28 | |
| 29 # TODO: Add mercurial version of benchmarkpkg | |
| 30 # TODO: Make it easy to compare different commits. (A simple script?) | |
| 31 | |
| 32 # Should set HGPLAIN before script use. Example: `HGPLAIN= hg st` | |
| 33 # `hg id` for getting the revision | |
| 34 # `hg update --check` for updating, requires a clean working directory. |
