Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th March 2022, 19:36   #1  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,769
What is the startup performance of different programming languages?

To answer my own question, I made some performance tests to find out how fast a test app or script can start, print Hello World and terminate.

These are my numbers:

C: 10 ms
C++: 10 ms

Python: 30 ms

.NET Framework: 30 ms
.NET Core: 40 ms

Lua 5.1: 13 ms
Lua 5.4: 13 ms

PowerShell 5.1: 230 ms
PowerShell 7.2: 400 ms

I was surprised by some of these numbers, positive and negative. Other languages I can only guess because at the moment I have little interest in them. Rust and Go should be pretty fast and Java pretty slow.

Maybe somebody of you find this topic also interesting. Most of the time it's not that important, I admit, but sometimes it can be! That's why I wanted to know exactly. I certainly use some apps I wish would start faster, for instance Anki and JDownloader, and I had a PS script to paste the date that was way too slow. It was launched with Flow Launcher using my Favorites plugin and my run-hidden app to hide the console window.
__________________
mpv.net - StaxRip - MediaInfo.NET - Get-MediaInfo - More
stax76 is offline   Reply With Quote
Old 9th March 2022, 23:27   #2  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,668
Depends on lots of things you are not controlling for, e.g., amount of static data to be zeroed.
videoh is offline   Reply With Quote
Old 11th April 2022, 15:22   #3  |  Link
wswartzendruber
Registered User
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 248
On Debian 11, Linux will start one of my Rust programs, output the help screen, and exit in 2 ms. I am not writing to the console, but diverting STDOUT to /dev/null. This was a cold start on a fresh boot, so nothing was likely cached in RAM.
wswartzendruber is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:35.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.