Skip to content

Instantly share code, notes, and snippets.

@kanav99
kanav99 / blog-diffeqbot.md
Last active June 18, 2019 17:24
DiffEqBot blog

Hello @DiffEqBot!

Hi! Today we all got a new member to the DiffEq family. Say Hi to our own DiffEqBot - A Bot which helps run benchmarks and compares with the current master of a given package. It also generates and stores the Reports generated in a repository. What's special about this is that it is completely stateless (no databases involved at all, just juggling between repositories!) and it has no exposed public URLs. Even though highly inspired by Nanosoldier, this has a completely unique workflow.

How do you make it work?

So what all you need to do is call @DiffEqBot runbenchmarks in a comment in a PR of a JuliaDiffEq repository and it will do all the work for you. It will benchmark your pull request against the current master and post the link of report when the job gets completed. Found a bug in PR and now you don't need to complete previous job? Just comment @DiffEqBot abort and it won't run now. You also need to mai

using OrdinaryDiffEq
# First time
function lorenz(du,u,p,t)
du[1] = 1e6*((1-u[2]*u[2])*u[1] - u[2])
du[2] = 1*u[1]
end
u0 = [0;2.]
tspan = (0.0,6.3)
@kanav99
kanav99 / stiff.jl
Created May 26, 2019 19:08
no recompile mwe
using OrdinaryDiffEq
# First time
function lorenz(du,u,p,t)
du[1] = 1e6*((1-u[2]*u[2])*u[1] - u[2])
du[2] = 1*u[1]
end
u0 = [0;2.]
tspan = (0.0,6.3)
@kanav99
kanav99 / benchmark.md
Created May 14, 2019 14:14
A benchmark for PkgBenchmark

Benchmark Report for OrdinaryDiffEq

Job Properties

  • Time of benchmarks:
    • Target: 14 May 2019 - 19:43
    • Baseline: 14 May 2019 - 19:44
  • Package commits:
    • Target: 44564c
    • Baseline: 44564c
  • Julia commits:
@kanav99
kanav99 / dprkn7.jl
Created April 3, 2019 14:55
dprkn7
struct DPRKN7ConstantCache{T,T2} <: OrdinaryDiffEqConstantCache
c1::T2
c2::T2
c3::T2
c4::T2
c5::T2
c6::T2
c7::T2
c8::T2
a21::T