How to benchmark @distributed block?

In julia, it’s best practice to benchmark functions. So something like:

function bench()
  @distributed for i in 1:10000
    i * 2
  end
end
@btime bench()

would be better.