Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Last active August 29, 2015 14:01
Show Gist options
  • Save AeroNotix/53fbac3b6bfd84836b4e to your computer and use it in GitHub Desktop.
Save AeroNotix/53fbac3b6bfd84836b4e to your computer and use it in GitHub Desktop.
(gen/phases
(->> (range sample-size)
(map (fn [x] {:type :invoke
:f :add
:value x}))
gen/seq
(gen/stagger 1/10)
(gen/delay 1)
(gen/nemesis
(gen/seq
(cycle [(gen/sleep 60)
{:type :info :f :start}
(gen/sleep 300)
{:type :info :f :stop}]))))
(gen/nemesis
(gen/once {:type :info :f :stop})))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment