Compare the six languages
Execution model, memory, concurrency and rough performance tiers, so you can choose the right tool for the job.
| C++ | C# | Go | JavaScript | PHP | Python | |
|---|---|---|---|---|---|---|
| Execution | Native machine code (AOT) | .NET runtime (JIT) or Native AOT | Single static native binary | V8 / SpiderMonkey / JSC engines (JIT) | Zend Engine, bytecode + OPcache, optional JIT | CPython bytecode interpreter |
| Typing | Static, strong-ish | Static, strong, nullable-aware | Static, strong, structural interfaces | Dynamic, weak (TypeScript adds static types) | Dynamic with gradual typing (strict_types) | Dynamic, strong, optional type hints |
| Memory | Manual / RAII, no GC | Generational GC | Concurrent low-latency GC | Garbage collected | Reference counting + cycle collector | Reference counting + cycle GC |
| Concurrency | Threads, atomics, coroutines (C++20) | Tasks, async/await, channels | Goroutines and channels | Single-threaded event loop, workers | Shared-nothing per request; Fibers (8.1) | asyncio, threads (GIL), multiprocessing |
| Raw CPU speed | ||||||
| Start-up time | ||||||
| Memory efficiency | ||||||
| Development speed |
Tiers are an editorial estimate for typical workloads, not measured results. Real numbers depend heavily on the workload, runtime version and libraries.
Choose when…
Game engines and real-time graphics
Embedded and automotive · High-frequency trading and low-latency systems · Browsers, databases, compilers
C#Enterprise web APIs and back-ends
Windows desktop and cross-platform apps · Games · Cloud services on Azure
GoCloud-native infrastructure
Microservices and APIs · CLI tools · Network proxies and high-concurrency servers
JavaScriptWeb front-ends
Real-time and I/O-heavy APIs · Full-stack apps with one language · Serverless and edge functions
PHPContent sites and CMS
E-commerce · Business web apps and APIs · Cheap, widely available hosting
PythonMachine learning and data science
Automation and scripting · Web back-ends and APIs · Education and prototyping