[Bench] Add JSON output and declare missing dependency (#37127)