Number of values in an array above a threshold

Thanks for sharing the latest results using @btime.
PS: In VS Code editor, I had to declare ‘r’ as global in @dpsanders’s function run_bench(), otherwise get error:

ERROR: UndefVarError: r not defined