Linux and Windows operating systems perform differently depending on the workload, program needs, and hardware setup. Linux may outperform Windows in some situations, but Windows may outperform Linux in others.
However, on the ground of security, Linux is far better than Windows OS.