diff --git a/.github/workflows/benchmark_pr.yml b/.github/workflows/benchmark_pr.yml deleted file mode 100644 index 98d830c0..00000000 --- a/.github/workflows/benchmark_pr.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Run benchmarks - -on: - pull_request: - -jobs: - Benchmark: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@latest - with: - version: 1 - - uses: julia-actions/julia-buildpkg@latest - - name: Install dependencies - run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"' - - name: Run benchmarks - run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()' - - name: Post results - run: julia -e 'using BenchmarkCI; BenchmarkCI.postjudge()' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index be9f3592..7ae77490 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,4 @@ docs/site/ *.jl.mem Manifest.toml -archive/ -/.benchmarkci -/benchmark/*.json \ No newline at end of file +archive/ \ No newline at end of file diff --git a/src/benchmark/benchmarks.jl b/src/benchmark/benchmarks.jl deleted file mode 100644 index e892c494..00000000 --- a/src/benchmark/benchmarks.jl +++ /dev/null @@ -1,32 +0,0 @@ -using BenchmarkTools -using Polynomials - -Ps = (P=Polynomial, IP=ImmutablePolynomial, SP=SparsePolynomial, - LP=LaurentPolynomial) - -const SUITE = BenchmarkGroup() - -for P ∈ Ps - P′ = string(P) - SUITE[P′] = BenchmarkGroup(["Polynomials", P′]) - SUITE[P′]["evaluation"] = - (@benchmarkable p(c) setup=(p=$P(rand(20)); c=rand())) - SUITE[P′]["scalar addition"] = - (@benchmarkable p + c setup=(p=$P(rand(20)); c=rand())) - SUITE[P′]["scalar multiplication"] = - (@benchmarkable p * c setup=(p=$P(rand(20)); c=rand())) - SUITE[P′]["scalar divistion"] = - (@benchmarkable p / c setup=(p=$P(rand(20)); c=rand())) - SUITE[P′]["poly addition"] = - (@benchmarkable p + q setup=(p=$P(rand(20)); q = $P(rand(25)))) - SUITE[P′]["poly multiplication"] = - (@benchmarkable p * q setup=(p=$P(rand(20)); q = $P(rand(25)))) - SUITE[P′]["mixed var add"] = - (@benchmarkable p + q setup=(p=$P(rand(20)); q=$P(rand(1),:y))) - SUITE[P′]["mixed var mul"] = - (@benchmarkable p * q setup=(p=$P(rand(20)); q=$P(rand(1),:y))) - SUITE[P′]["differentiation"] = - (@benchmarkable derivative(p) setup=(p=$P(rand(20)))) - SUITE[P′]["integration"] = - (@benchmarkable integrate(p) setup=(p=$P(rand(20)))) -end