diagnose traffictest
Since version 5.2.5 Fortinet has added the 'diagnose traffictest' command.
It appears to be an iperf3 running on the Fortigate.
But it seems you can only measure bandwith between interfaces on the Fortigate itself.
I tested some boxes:
FWF60D: 314 Mbit/s (wan1-internalswitch)
FG200b: 1.3GB/s (internal-port9)
FG400D: 15.2 GB/s (port9-port14)
I guess this should proof the firewall throughput? Is there a way to measure troughput between two Fortigates or even another iperf3 instance running on a non-fortinet device?