Python code performance is high on windows server 2019 whereas its low in windows 10

Abhijit Deshpande 0 Reputation points
2024-08-27T12:08:37.2733333+00:00

Python code performance is high on windows server 2019 whereas its low in windows 10

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,703 questions
Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,210 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,622 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,549 questions
{count} votes

3 answers

Sort by: Most helpful
  1. MotoX80 34,346 Reputation points
    2024-08-27T13:52:54.06+00:00

    You will need to do a hardware comparison and performance analysis in order to troubleshoot the problem.

    If the server has faster processors/memory/motherboard, then yes, just about any program will run faster. Is sufficient memory available? If the code does a lot of I/O then disk performance could be an issue. If the code does any network calls, you will need to look at that to see how fast those calls take.

    Are both machines running the same version of Python? What other software, such as anti-virus, is installed on these machines? Are other running programs using cpu/memory/disk?

    You will need to isolate the problem before anyone on this forum can really help you.

    1 person found this answer helpful.

  2. Rich Matheisen 46,806 Reputation points
    2024-08-27T15:27:27.86+00:00

    Are all three of those machines running the same workload while you compare their relative performance?

    Do all three machines have the same set of "features" installed? E.g., DNS, IIS, DHCP, AD domain/global catalog services, etc.? Are all three machines acting as file servers for the same number of shares and clients?

    Does your Python code consume the same amount of CPU time on all three machines? IOW, are you measuring "performance" or "elapsed time" when you mention that some machines run your code slower than the others? Does your Windows 10 machine have SSD drive(s)? Do your servers? Are the disks on the servers configured in some sort of RAID? Is the Windows 10 machine configured in that way?

    Also, how is your question related to "Windows Server PowerShell", or "Internet Information Server" for that matter?

    1 person found this answer helpful.
    0 comments No comments

  3. Gurijala Rajeswar Reddy 15 Reputation points
    2024-08-27T16:46:39.9733333+00:00

    The difference in Python code performance between Windows Server 2019 and Windows 10 can stem from several factors: System Resources: Windows Server 2019 might be optimized for handling high workloads and could have more system resources allocated for performance. Windows 10, being a desktop OS, might have more background processes and less emphasis on performance optimization. Background Processes: Windows 10 typically runs more background services and applications compared to Windows Server 2019, which can affect performance. System Configuration: Windows Server 2019 may have configurations and optimizations aimed at performance and stability for server tasks that can indirectly benefit Python performance. Python Environment: Different versions or configurations of Python installed on the two systems could impact performance. Ensure you are using the same Python version and environment settings on both. Updates and Patches: Ensure both operating systems are up-to-date, as performance improvements and bug fixes can affect how Python runs. Hardware Differences: If the hardware between the two systems is different, it could also impact performance. I think you understand why Python code performance is high on windows server 2019 whereas its low in windows 10

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.