Skip to content

Commit 5c35238

Browse files
committed
Benchmark more with Mooncake
1 parent 9a64f32 commit 5c35238

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

benchmarks/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ DynamicPPL = "366bfd00-2699-11ea-058f-f148b4cae6d8"
1010
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1111
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1212
LogDensityProblems = "6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
13+
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1314
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
1415
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
1516

1617
[compat]
1718
ADTypes = "1.14.0"
1819
BenchmarkTools = "1.6.0"
1920
Distributions = "0.25.117"
20-
# DynamicPPL deliberately has no compat bound, to allow using the local version.
2121
ForwardDiff = "0.10.38"
2222
LogDensityProblems = "2.1.2"
2323
PrettyTables = "2.4.0"

benchmarks/benchmarks.jl

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,15 @@ chosen_combinations = [
4444
("Smorgasbord", smorgasbord_instance, :untyped, :forwarddiff, true),
4545
("Smorgasbord", smorgasbord_instance, :simple_dict, :forwarddiff, true),
4646
("Smorgasbord", smorgasbord_instance, :typed, :reversediff, true),
47-
# TODO(mhauru) Add Mooncake once TuringBenchmarking.jl supports it. Consider changing
48-
# all the below :reversediffs to :mooncakes too.
49-
#("Smorgasbord", smorgasbord_instance, :typed, :mooncake, true),
50-
("Loop univariate 1k", loop_univariate1k, :typed, :reversediff, true),
51-
("Multivariate 1k", multivariate1k, :typed, :reversediff, true),
52-
("Loop univariate 10k", loop_univariate10k, :typed, :reversediff, true),
53-
("Multivariate 10k", multivariate10k, :typed, :reversediff, true),
54-
# TODO(mhauru) Would like to use :reversediff here, but see
55-
# https://github.com/TuringLang/DynamicPPL.jl/issues/835
56-
("Dynamic", Models.dynamic(), :typed, :forwarddiff, true),
57-
("Submodel", Models.parent(randn()), :typed, :reversediff, true),
47+
("Smorgasbord", smorgasbord_instance, :typed, :mooncake, true),
48+
("Loop univariate 1k", loop_univariate1k, :typed, :mooncake, true),
49+
("Multivariate 1k", multivariate1k, :typed, :mooncake, true),
50+
("Loop univariate 10k", loop_univariate10k, :typed, :mooncake, true),
51+
("Multivariate 10k", multivariate10k, :typed, :mooncake, true),
52+
("Dynamic", Models.dynamic(), :typed, :mooncake, true),
53+
("Submodel", Models.parent(randn()), :typed, :mooncake, true),
54+
# TODO(mhauru) Switch to :mooncake once
55+
# https://github.com/compintell/Mooncake.jl/issues/513 is resolved
5856
("LDA", lda_instance, :typed, :reversediff, true),
5957
]
6058

benchmarks/src/DynamicPPLBenchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ using DynamicPPL: DynamicPPL
66
using ADTypes: ADTypes
77
using LogDensityProblems: LogDensityProblems
88

9-
# Load some the default backends to trigger conditional loading.
109
using ForwardDiff: ForwardDiff
10+
using Mooncake: Mooncake
1111
using ReverseDiff: ReverseDiff
1212

1313
include("./Models.jl")

0 commit comments

Comments
 (0)