Hard to say without knowing more about your case. You can use the help link above the gear table to generate a snapshot id. Post that id here and we can look at your specific case.
The attack power gems are very slightly better with the chosen setup in your highest priority setup (solo or dungeon).
If you want the 8 agility gems to be ranked higher, you could enable blessing of kings in your settings, or exclude the attack power gems from the optimization.