-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ authors = ["Florian Oswald <[email protected]>"] | |
version = "0.1.0" | ||
|
||
[deps] | ||
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" | ||
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" | ||
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | ||
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#! /usr/local/bin/fish | ||
for n in (seq 2) | ||
env JULIA_NUM_THREADS=$n julia --project=. ./src/bmark.jl | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using DCEGM | ||
using BenchmarkTools | ||
println("using $(Threads.nthreads()) threads") | ||
println("===========================") | ||
na = 5000; ny = 50 | ||
|
||
println("fedors model on na=$na,ny=$ny") | ||
DCEGM.runf(par = Dict(:na => na, :ny => ny)); | ||
@btime DCEGM.runf(par = Dict(:na => na, :ny => ny)); | ||
|
||
na = 500; ny = 15 | ||
println("general model on na=$na,ny=$ny") | ||
DCEGM.rung(par = Dict(:na => na, :ny => ny)); | ||
@btime DCEGM.rung(par = Dict(:na => na, :ny => ny)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters