# BenchmarkTools setup isn't run between each iteration?

**URL:** <https://discourse.julialang.org/t/benchmarktools-setup-isnt-run-between-each-iteration/36258>\
**Category:** General Usage\
**Tags:** question, benchmarktools\
**Created:** [March 20, 2020, 12:59pm UTC](https://discourse.julialang.org/t/benchmarktools-setup-isnt-run-between-each-iteration/36258 "2020-03-20T12:59:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [March 20, 2020, 1:21pm UTC](https://discourse.julialang.org/t/benchmarktools-setup-isnt-run-between-each-iteration/36258/4 "2020-03-20T13:21:56Z")

</div>

Check out this section of the manual, which specifically uses `sort` as an example: [https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#setup-and-teardown-phases](https://github.com/JuliaCI/BenchmarkTools.jl/blob/master/doc/manual.md#setup-and-teardown-phases)

---

_[View the full topic](https://discourse.julialang.org/t/benchmarktools-setup-isnt-run-between-each-iteration/36258)._
