Skip to content

Commit 2ae90b7

Browse files
committed
update benchmark.jl example
1 parent 077a924 commit 2ae90b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/benchmark.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ using WordCloud
33
using Random
44
# Random.seed!(8)
55

6-
println("This test will take several minutes")
6+
println("This test will take several minutes.")
77
@show Threads.nthreads()
88
words = [Random.randstring(rand(1:8)) for i in 1:200]
99
weights = randexp(length(words)) .* 2000 .+ rand(20:100, length(words));
10-
wc1 = wordcloud(words, weights, mask=shape(ellipse, 500, 500, color=0.15), masksize=:original, angles=(0, 90, 45), density=0.55)
10+
wc1 = wordcloud(words, weights, mask=shape(ellipse, 500, 500, color=0.15), masksize=:original, angles=(0, 90, 45))
1111

1212
words = [Random.randstring(rand(1:8)) for i in 1:400]
1313
weights = randexp(length(words)) .* 2000 .+ rand(20:100, length(words));
@@ -24,6 +24,7 @@ WordCloud.Stuffing.trainepoch_P!,WordCloud.Stuffing.trainepoch_P2!,WordCloud.Stu
2424
es = [[] for i in 1:length(wcs)]
2525
for (i, wc) in enumerate(wcs)
2626
println("\n\n", "*"^10, "wordcloud - $(length(wc)) words on mask$(size(wc.mask))", "*"^10)
27+
i == 4 && deleteat!(ts, lastindex(ts)-2:lastindex(ts)) # too slow
2728
for (j, t) in enumerate(ts)
2829
println("\n", i - 1, "==== ", j, "/", length(ts), " ", nameof(t))
2930
placewords!(wc, style=:uniform)

0 commit comments

Comments
 (0)