Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
d-k-bo
2y ago
0 comments
Share
Startup time in Python depends on the program because Python compiles all modules to bytecode before executing them.
0 comments
default
newest
oldest
mg
2y ago
When I up the loop size by a factor of 10, Python takes 10x longer. So I don't think the compile time plays a role here.
Similar for the PHP version.
python3 loop.py 3.450s time php loop.php 0.469s
So PHP is 7x faster for the longer loop.
j
/
k
navigate · click thread line to collapse