Programming

How is the speed of programming languages measured?
I know that people say that one programming language is faster than another and that C is a really fast programming language but is there an actual unit in which the speed of programming languages are measured? Like the number of lines executed per second on a computer that has a speed of one GHz or something?
Typically you’ll take a particular test… Like sorting a million integers or doing some sort of a physics calculation or difficult mathematical operation. Pick something that’ll take a decent amount of time to run – say a minute or two.
Then, you code up the test in a bunch of different languages (typically in a straight forward manner, not doing any fancy tricks) and see how long they each take.
Obviously different algorithms and stuff will have different results, as each different language has strong and weak sections.
The reason a language like C or C++ are considered very fast is because they are compiled, so when you are running the program you are running in the native language of the computer (machine code). This is different than a language like Javascript which is an interpreted language (it has to do string operations and stuff when running the language). This makes a LOT of difference. Also, C is much lower level language than say Visual Basic, so when you tell the program to do something in C – it does only that, and it does it directly. In Visual Basic there are extra checks that are done to make sure that what you are doing doesn’t explode.
Generally, languages are organized by their speed, flexibility, and safety. A language like Javascript is very safe and flexible, but not very fast. C/C++ is very fast, but more strict and not safe at all.
Lecture 1 | Programming Methodology (Stanford)
|
|
Cuisinart DCC-1200 Brew Central 12-Cup Programmable Coffeemaker $165.00 A striking blend of retro style and modern technology. Programmable for brewing up to 24 hours in advance. Setting for 1 to 4 cups ensures full-bodied flavor and aroma. BrewPause™ feature lets you enjoy a cup before brewing is finished. Adjustable heater plate setting keeps coffee at the temperature you prefer. Audible “ready” signal. Automatic shutoff. Includes Gold Tone metal filter, #4 pap… |
|
|
Cuisinart DCC-1100 12-Cup Programmable Coffeemakers This classically designed coffeemaker is accented with stainless steel for a look that is sure to enhance your countertop. The 12 cup carafe features an ergonomic handle, dripless spout and knuckle guard for comfortable, drip-free pouring. Fully automatic, the DCC-1100 has 24-hour programmability and 1 to 4 cup setting for those times you don’t need a full pot of coffee. The Brew pause feature let… |
|
|
Hamilton Beach 48274 Brew Station 6-Cup Coffeemaker, Black $24.00 Hamilton Beach® Coffeemakers are popular for a few simple reasons — they make great coffee, brew fast, clean up easily and look absolutely terrific. From the innovative BrewStation® and Stay or Go┢ collections to the more traditional designs, Hamilton Beach® Coffeemakers incorporate Good Thinking┢ to help you brew the coffee you love. Every coffeemaker in the line is designed to … |
|
|
Voices of Our Time: The Original Live Interviews $16.04 From the 1950s through 1997, Louis âStudsâ Terkel, bestselling author of Hard Times, Working, The Great War, Coming of Age, and eight other books, hosted a daily one-hour show on WFMT Radio in Chicago. This nationally syndicated, Peabody Award-winning program was an ideal showcase for his curmudgeonly wit, his maverick opinions, and his genius as an interviewer. The 48 interviews in this… |
|
|
Beyond Belief Audio CD Version $11.91 This is the CD Audio Version of the transformational documentary Beyond Belief. Beyond Belief examines the role beliefs play in creating our experience and it explores the power of the subconscious mind. Uncover the source of ‘limiting beliefs’ which can stop you from creating what you want. This CD provides tools to remove obstacles that are blocking you. Unleash the power of your creative min… |
