Makes sense, most of my scripts are standalone zero dependency scripts that import a few things from the standard library.
`time pip3 --version` takes 230ms on my machine.
Makes sense, most of my scripts are standalone zero dependency scripts that import a few things from the standard library.
`time pip3 --version` takes 230ms on my machine.
That proves the point, right?
`time pip3 --version` takes ~200ms on my machine. `time go help` takes 25, and prints out 30x more lines than pip3 --version.
Yep, running time on my tool's --version takes 50ms and funny enough processing 10k CSV lines with ~2k lines of Python code takes 100ms, so 50ms of that is just Python preparing things to run by importing 20 or so standard library modules.
> so 50ms of that is just Python preparing things to run by importing 20 or so standard library modules.
Probably a decent chunk of that actually is the Python runtime starting up. I don't know what all you `import` that isn't implied at startup, though.
Another chunk might be garbage collection at process exit.