Benchmark of an electromagnetic gyrokinetic simulation code