How fast does Labview perform integer, float and matrix calculations?

What is the speed of a modern CPU? Ok it is 3Ghz, one to four cores etc. but how much work can I get done in one clock cycle at this speed?
This kind of questions have been in the back of my head for some time, so I decided to test it. Of course using Labview since it so easy to to use!
I wrote a really simple program that performed 10000 adds 3 to an 32 bit integer in a loop. It then repeats this until 1000ms has elapsed and calculates the MegaInts (or whatever I should call it). I then did the same thing by adding 3 to a matrix of 10000 32bit ints.
On and dual core 3Ghz PC from 2005 I got 261 Mints in a loop, and 1400 Mints in matrix. Only one core seems to be used, CPU load aorund 50%. So every two clock cycles or so I get some work done in a matrix calculation. Also older 1,8Ghz Celeron computers performs about the same in this test, even though they feel very slow in normal use.
On a newer 4/8 core 2,8Ghz PC from this year I got 830 Mints in a loop, and 5900 Mints in matrix. Only one core seems to be used, CPU load aorund 12%. So actually more than one add per clock cycle!
This indicates that either the compiler is smarter than me and does not to all integer adds, or the CPU is smart and do them very fast!
See this as not the complete benchmark of Labview in integer, float and matrix calculations, but as a teaser to make you do your own tests.
Play around and have fun!

Norbert_B wrote:
Yamaeda wrote:
A standard loop only runs in 1 thread,[...]
That is not true.
A standard loop follows the clumping algorithm during compilation. Clumps can be distributed on any number of threads.
So, a standard loop CAN be distributed between several threads.
There are, however, some settings and structures which will result in a single thread per loop:
- Setting the calling VI to "subroutine" priority (not recommended)
- Using a Timed Loop instead of a standard one
- AFAIK: Containing the loop in an InPlace Element Structure with "Data Value Reference" border nodes
There is at least one additional option, but it is so unlikely (as it messes up with most of LV!) that i will not point it out here.....
Norbert
Why would we have parallellization options for a loop if it's already multithreaded? I'd love if loops would automatically parallellize.
If you mean the content inside the loop, then it'll follow ordinary optimization and use several threads if possible. In this case OP mentioned 1 cpu was at 100%.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • IPad notification...stating iCloud could no longer store info.?? how fast does this fill up? And, what should I store /or not store...to keep this from happening?

    iPad notification...stating iCloud could no longer store info.?? how fast does this fill up? And, what should I store /or not store...to keep this from happening?

    Depends on what your storing.  This article will help you see what's using your storage so you can make some decisions on how to reduce it: http://support.apple.com/kb/ht4847.

  • How fast does my interent connection have to be for Apple TV

    How fast does my internet have to be for Apple TV to work? I currently have 20 bps

    On edit -- never mind - you just got the answer from someone!
    I don't know the answer Russ, but you may want to correct the title of your post as it says Facebook and not FaceTime -- someone who has information about the answer may not open the post to see the actual question. The title currently is:
    how fast does the internet connection need to be for Facebook

  • How fast does your Windows boot up?

    Out of curiosity, how fast does your Windows bootup?
    I have Windows XP, and the logo screen displays for about 11.06 seconds. How about yours, and what can be done to make Windows work faster?

    Quote
    Originally posted by Flam3h
    breenemeister..
    I Think spoolsv.exe is Printer Spooler.. you can set it to manual in the Services..
    Right click on My Computer > Manage > at the bottom on the left double click on Services + Applications > Services then double click on Print Spooler and and select startup type Manual.
    Also more fast bootup stuff... Search google for XP SP2 Beta... install that > ive found it great so far.. MS has got it so it disables a load of unneeded services so PC will boot / shut down quicker.. Remember it is only a BETA atm.. so use at your own risk.. ive had no probs tho.. pc seems quicker
    Cheers.
    Jon
    Thanks Flam3h, it most definitely is the printer spooler.  The problem is that if you set it to manual, your printer will not work.  When you go to print something, Windows tells you that you must first install a printer.  This is the only service I've found where the manual setting will not work.  You either have to set it as automatic or go into services and start it each time you want to print.  I'm just wanting to know if anyone else has this problem and knows of a work around to allow the manual setting to work.
    I don't know if I'm ready to try service pack 2 yet.  If I do, I will definitely make a ghost first

  • How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    How fast does Apple produce new RAW files for new cameras? I want to buy a D7100 wich is not supported in the present version?

    Jeannot7 wrote:
    I'm interested in seeing who gets the D7100 support first? Apple or Adobe!! I will go with the one that gets it out first.
    FWIW,
    Adobe keeps a quarterly release schedule for RAW updates. The current Lightroom 4.4 RC expires on 5/31/2013 which typically is an indication that the official release will be close to that date. According to the current list of new supported cameras, the Nikon D7100 is not slated to be supported (but that could change on release).
    http://labs.adobe.com/technologies/lightroom4-4/?tabID=details#tabTop
    The most likely time frame for Adobe support of the D7100 will be sometime in August or September 2013 (although there will probably be a Lightroom 4.5 RC available prior to that for testing purposes).

  • How long does it take to download and install ios 7.1.2?

    hello,
    how long does it take to download and install the new ios 7.1.2?
    i am in the installation phase but its taking about an hour now and its still trying to load. i cant use my ipod. i really need help because the bar is not moving and the screen is just black with the apple logo and the bar that tells you how much longer you have but its not moving!
    please help

    It should only take about ten minutes at the most.
    You need to use recovery mode to restore the device >  iOS: Unable to update or restore

  • How long does it take to download and install Yosemite?

    How long does it take to download and install Yosemite?

    That is going to depend on the speed of your Internet connection as well as your machine. It took about an hour to install on my mid 2011 iMac if I recall. I started it and walked away, stopping in to check on it a few times throughout the evening.  That doesn't include the time it takes to download the ~5GB installer.

  • How long does it take to download and install maverick

    How long does it take to download and install maverick, not got high speed connection

    It always depends on your network.
    Can always go to http://www.speedtest.net and it will let you know your download speed and can do the math.
    It will take about 2 hours on a good network though.

  • How fast does a while loop executes

    hi how fast does a while loop actually checks its condition??
    depending on the processor speed??
    anyone??

    Sorry I write that wrong,
    heres how it should be:
    public class whileLoop{
    int time, time2;
    time = System.currentTimeMillis();
    public timer()
    while //watever//{
    time2 = System.currentTimeMillis();
    time2 = time2 - time;
    system.out.println(time);
    class use{
    whileLoop a = new whileLoop();
    public void main(String args[]){
    a.timer();
    }

  • TS1433 how fast is the imac computer? and how much does it cost? the 27 in imac.

    how fast is the imac computer? how much does it cost?
    the 27in. i mac

    New iMacs:
    http://www.macworld.co.uk/mac/news/?newsid=3373666&olo=email

  • How fast does a macbook battery usualy drain?

    I'm just curious how fast is typical for a macbook battery to drain each time you use it. I got a replacement batter b/c my old one was a dud. This one has drained 10% (100% to 90%) in about 35-40 minutes (constant use). I'm not saying that's abnormal, I'm just curious what normal is.
    Gracias!
    P.S. Screen is turned on medium light and bluetooth is off (however, wireless is on).

    That sounds good. If your battery drains like that you could get 4 or 5 Hours out of it. If you take good care of it you should have no problems. It is OK to leave your battery hooked to the charger most of the time. The only time I unhook mine from the charger is when I calibrate. Have you calibrated your batteryyet? You should calibrate every two months or so to keep the battery fully functioning. If you use your MacBook infrequently, it’s best to re-calibrate the battery at least once a month.
    The following links have good information about the MacBook and the care of it's battery.
    Tips for maximizing your Notebook battery charge
    MacBook reduces processor speed when battery is removed while operating from an A/C adaptor
    Apple portable computer's battery does not show a full charge in Mac OS X
    Look here and here for some good tips about battery care.
    MacBook: How to remove or install the battery
    Determining Battery Cycle Count
    Use and cleaning of MagSafe power connector

  • Re: How much does just a skype number and forwardi...

    I am wondering how much does call forwarding cost? (Before I sign up for it)
    I had a local Brazilian phone number and I just cancelled the service, because:
    1) Quality calls on the PC were very bad
    2) I thought I should try call forwarding the number to a landline to help with the quality call
    3) I discovered that I had to pay extra for call forwarding
    4) I have no idea how much call forwarding cost, there isn't a place on the website  that tells me its cost before I sign up for it.
    So, my question is how much does call forwarding cost? For now, my local BR number is cancelled.
    Thanks.

    fols wrote:
    there isn't a place on the website  that tells me its cost before I sign up for it.
    Hello,
    Here it is in our FAQs.
    https://support.skype.com/en/faq/FA12258/what-is-c​all-forwarding-and-how-does-it-work-on-skype?fromp​...
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • How fast does find my phone track

    How fast or often will i see where it is?  Can i watch it move to follow it track?

    There is no set time, apparently, because sometimes it can take hours for the data to appear. Find My Phone only saves locations for 24 hours then replaces them with the next 24 hours, etc.

  • How well does labVIEW optimize itself to run on dual processors? (would be dual Xeon cpus without hyperthreading)

    I am looking to get a new computer to run my labVIEW app. It is a processor intensive data analysis / simulation program. I am curious as to how well labVIEW optimizes its code to run on dual processor machines? Will I have to add some thread control code
    to get the full benefit?

    Hallo,
    Normally just splitting your code into two parallel-executed loops would be enough for optimization for dual processor. If you have already available dual-processor computer, then try to make simple experiment: Put on your block diagram while-loop (without delay), then run it and looking for CPU usage. You will see, that only one processor occupied with 100% and second not (average CPU usage is 50%). Now put second while-loop (also without delay). Now both processors are busy with 100% (but both loops executed with approximately same speed). In most cases "two-loops" splitting of your analysing algorithm will be enough for increasing performance (not twice, of course, but significally).

  • HT2736 i have purchased an itunes voucher through itunes, but it has not yet come through to me email. how long does it take?? And what do I do if it doesn't come??

    I have purchased an itunes gift voucher through itunes, but i have not yet recieved it. How long do they take to come through?? What do I do if it doesn't come??

    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

Maybe you are looking for

  • Accessing Translets in a JSP Page

    Hi, I have a Translet[already compiled XSL file] named "pr.class" and I have a XML file named "pr.xml". I want to transform the pr.xml to a HTML format using pr.class in a JSP page.But I am getting some errors.My code goes like this, xml file="d:/tra

  • HT1772 hi guys i wanted to ask how do you get mac app store on my ibook?

    i cannot even access my own wifi from my house i could only see the neighbors but umm i really wanted to get the mac app store i dont have it on my ibook

  • My apple tv is stuck

    on an image of the product with a micro usb in to itunes. I understand this means that an update didn't work but I don't own a micro usb or have itunes on this laptop. Is there any way of fixing this without itunes or a micro usb?

  • Solaris v10 sparc jumpstart server on x86 solaris - can't find miniroot.

    I am trying to setup a jumpstart install server on an x86 solaris v10 machine to do a sparc network install. I downloaded both the CD and DVD sparc v10 ISO's. When I mount the CD, the Solaris_10/Tools/Boot directory (miniroot system) is symlinked bac

  • N96 video recording

    does anyone know if the new firmware version V20 for the n96 clears the really bad hissing sound when i record a video or am i waiting for nothing, my phone has been to the nokia shop and as previously said before im on the 3rd handset all with the s