Comparison of electromagnets