You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmarks/Jumps/AggregatorBenchmark.jmd
+37-50Lines changed: 37 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -33,70 +33,57 @@ concentration curve for each method.
33
33
34
34
35
35
# Performance Benchmark (Sanft 2015)
36
-
For our performance benchmark test, we will look at a very simple reaction network.
37
-
```julia
38
-
rn = @reaction_network begin
39
-
@parameters kA kB
40
-
kA, 0 --> A
41
-
kB, 0 --> B
42
-
end
43
-
```
36
+
For our performance benchmark test, we will look at a very simple reaction network consisting of conversion reactions of the form A <--> B.
37
+
38
+
Below we define the function that we will use to generate the jump problem from this network. Fundamentally
39
+
we want to test how quickly each SSA updates dependent reaction times in response to a reaction event. To
40
+
standardize this, we will make each reaction force 10 updates. In a network of conversion reactions Ai <--> Aj,
41
+
each reaction event will force updates on any reaction that has Ai or Aj as their reactant. The way we will
42
+
implement 10 updates per event is to make each species the reactant (and product) of 5 different reactions.
44
43
45
-
Below we define the function that we will use to generate the jump problem from this network. Fundamentally we want to test how quickly each SSA updates dependent reaction times in response to a reaction event. To standardize this, we will make each reaction force 10 updates, and force updates to the times by rescaling the rate of those reactions by randexp() at each timestep.
46
-
```julia
47
-
# z A B
48
-
u0 = [1., 1, 1]
49
-
p = (kA = 1.0, kB = 2.0)
50
-
rateA(u, p, t) = p.kA * u[1]
51
-
rateB(u, p, t) = p.kB * u[1]
52
-
53
-
# Our affect resamples u[1] to effectively resample the next time-to-reaction. This is the
54
-
# simplest way to get random updates on the times, since we don't resample times
Copy file name to clipboardExpand all lines: benchmarks/Jumps/BCR_Benchmark.jmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author:
7
7
using JumpProcesses, Plots, StableRNGs, Random, BenchmarkTools, ReactionNetworkImporters, StatsPlots, Catalyst
8
8
```
9
9
10
-
We will benchmark the aggregators of JumpProcesses on a B-cell receptor network (1122 species, 24388 reactions).[^1]
10
+
We will benchmark the aggregators of JumpProcesses on a B-cell receptor network (1122 species, 24388 reactions).[^1] This model reaches equilibrium after 10,000 seconds.
11
11
12
12
# Model Benchmark
13
13
We define a function to benchmark the model and then plot the results in a benchmark.
Copy file name to clipboardExpand all lines: benchmarks/Jumps/Fceri_gamma2_Benchmark.jmd
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author:
7
7
using JumpProcesses, Plots, StableRNGs, Random, BenchmarkTools, ReactionNetworkImporters, StatsPlots, Catalyst
8
8
```
9
9
10
-
We will benchmark the aggregators of JumpProcesses on a human IgE receptor signaling network (3744 species, 58276 reactions).[^1, ^2]
10
+
We will benchmark the aggregators of JumpProcesses on a human IgE receptor signaling network (3744 species, 58276 reactions)[^1, ^2]. This network reaches steady state after 150 seconds.
11
11
12
12
# Model Benchmark
13
13
We define a function to benchmark the model and then plot the results in a benchmark.
0 commit comments