Slashdot Mirror


Are 64-bit Binaries Slower than 32-bit Binaries?

JigSaw writes "The modern dogma is that 32-bit applications are faster, and that 64-bit imposes a performance penalty. Tony Bourke decided to run a few of tests on his SPARC to see if indeed 64-bit binaries ran slower than 32-bit binaries, and what the actual performance disparity would ultimately be."

27 of 444 comments (clear)

  1. Re: OSNews by duffbeer703 · · Score: 5, Funny

    In case anyone hasn't realized it yet, this article proves that OSNews is the most retarded website on the planet.

    The typical story is titled like "A comprehensive review of the Atari ST". The contents are typically something like... "I found an old Atari ST, but my cdrom wouldn't fit in the 5.25" disk drive and mozilla wouldn't compile. So the Atari sucks"

    I benchmarked a skilled Chinese abacus user against a C-programmer implementing an accounting system. The chinese dude figured out that 1+1=2 before the C-programmer loaded his editor, so the abacus is faster.

    --
    Conformity is the jailer of freedom and enemy of growth. -JFK
  2. It all depends... by paul248 · · Score: 5, Funny

    It all depends on how many of those 64 bits are 1's. 1's are a lot heavier than 0's, so too many of them will slow your program down a lot. If you compare a 32-bit program with all 1's, it will run significantly slower than a 64-bit program with only a few 1's. It's simple, really.

    1. Re:It all depends... by Anonymous Coward · · Score: 2, Funny

      How do you figure? CMOS only uses energy when transitioning between one and zero, when both transistors are in the ohmic region (drawing current). I don't see how 1 is any more heavy than 0.

    2. Re:It all depends... by Anonymous Coward · · Score: 4, Funny

      Here on planet Jokeania, we laugh at his statement.

    3. Re:It all depends... by Anonymous Coward · · Score: 2, Funny

      Pointy haired boss: Dilbert! My laptop is awfully heavy. Is there anything I can do?

      Dilbert: Sure! Just start randomly deleting things. All that data can be pretty heavy!!!!

      (later)
      Pointy haired boss: Hmmm...Windows? My house already has all I need! *click* Yes! That's gotta be like 5 pounds!

    4. Re:It all depends... by Anonymous Coward · · Score: 1, Funny

      does that mean you can optimize your code by constantly xoring variables with themselves?

    5. Re:It all depends... by Uncle+Gropey · · Score: 5, Funny

      It's not that the 1's are heavier, it's that they tend to snag in the system bus and take longer to travel than the smoother 0's.

    6. Re:It all depends... by paul248 · · Score: 2, Funny

      That's why I modded my CPU to handle 0's and 8's instead. I call it the 8thlon XP.

    7. Re:It all depends... by Frymaster · · Score: 4, Funny
      it's that they tend to snag in the system bus and take longer to travel than the smoother 0's.

      this reminds of "back in the day" when we ran a token ring network. when end users would complain about net outage we'd simply tell them that the token got stuck or, worse yet lost. fortunately, we have a backup token on floppy back in the systems room. it's an fddi token, mind you, so it's a bit bigger but if you don't kink the cabling it should work fine for now.

    8. Re:It all depends... by appleLaserWriter · · Score: 4, Funny

      1's are a lot heavier than 0's

      On early systems, particularly before the 286, the mass differential between 0 and 1 was a serious issue. However, the 286's innovative pipeline system introduced a shift in focus from mass to width. As pipelines became increasingly narrow, words composed primarily of "1"s began to execute at a more rapid pace than those with a heavy weighting of "0"s.

    9. Re:It all depends... by Art+Tatum · · Score: 3, Funny

      Did you ever have them look for the token under their desks? More fun than telling them where the "any" key is. :-)

    10. Re:It all depends... by fucksl4shd0t · · Score: 4, Funny

      Man, I'm going offtopic, but back in my oil-changing days...

      Some new guy had started working, and his neck was redder than desert sand. He told me that his girlfriend's car had a blinker out on the left and he replaced the bulb and the light didn't come back on. I asked him if he checked his blinker fluid. He said he didn't know what blinker fluid was. I told him that blinker fluid sits in a reservoir in the middle of the car, and when you make a turn the fluid flows in the opposite direction of the turn, into the blinkers, to make sure that the electrical connection is good.

      He spent 3 hours the next morning, on his day off, calling up parts stores and asking them if they had any blinker fluid. Poor guy. I had to break it to him slowly...

      --
      Like what I said? You might like my music
    11. Re:It all depends... by ari_j · · Score: 4, Funny

      In high school, we put a girl up to getting her blinker fluid topped off at a service station. She went and asked about it, and the next day was quite irate with us. But that didn't stop us - within a week, we sent the same girl to go have the summer air taken out of her tires, to be replaced with winter air. Apparently she went back to the same shop to have them take care of this for her.

      That's the difference between a natural blonde and a dyed blonde.

  3. More SCO code. by Ken+Broadfoot · · Score: 2, Funny

    From the article:

    I create a very simple C file, which I call hello.c:

    main()
    {
    printf("Hello!\n");
    }

    Watch out... SCO owns this bit of code too...

    --ken

    --
    Bitcoin pyramid: Join here: http://www.bitcoinpyramid.com/r/1427 it's FREE!
    1. Re:More SCO code. by jusdisgi · · Score: 4, Funny

      Hey...that's funny...I just called a post off-topic that was a direct quote from the artical.

      Cool.

      Of course, the funny thing is that I'm right (in a way).

      --
      Given a choice between free speech and free beer, most people will take the beer.
  4. Re:Moving more data by momerath2003 · · Score: 2, Funny

    ...because otherwise the computer physically has to move twice as much data around for each operation it does.

    64-bit computers have to physically move data around? I suppose I'll have to buy a grappling arm attachment for my G5 to get it to work. :(

    --
    I had but a simple dream, to destroy all humans.
  5. Re:I'll save you guys the read. by archen · · Score: 2, Funny

    The same tricks that boost the performance of their CPU model numbers 20-30% over their clockspeed? =P

  6. Re:I'll save you guys the read. by HardCase · · Score: 3, Funny
    Makes me wonder what tricks AMD has managed to pull out of their hat to increase 64 bit performance by 20-30%...


    They didn't use an obsolete UltraSparc chip? ;-)

  7. If 32bit is faster than 64... by CatGrep · · Score: 5, Funny

    Then 16bit binaries should be even faster then 32.

    And why stop there?

    8bits should really scream.

    I can see it now: 2GHz 6502 processors, retro computing. The 70's are back.

  8. Benchmarks by Anonymous Coward · · Score: 3, Funny

    As it needs to be said for any benchmarking story:

    There are 3 types lies. Lies. Damned Lies. ...and benchmarks.

    1. Re:Benchmarks by Frymaster · · Score: 5, Funny
      There are 3 types lies. Lies. Damned Lies. ...and benchmarks.

      i've got some specint stats that show that damned lies are up to 30% faster.

  9. what a bunch of bullcrap by Anonymous Coward · · Score: 1, Funny

    No one had tested it before to my knowledge, so predicting the outcome was impossible.

    yes, right. we predict only on things we've seen someone else do in the past.

    you've got the right idea, mate...

  10. Re: OSNews by DNS-and-BIND · · Score: 4, Funny

    Are you kidding? This guy is a genius. Not only did he actually figure out that the UltraSPARC-II processor is 64-bit, but he can actually use the file and time utilities! Most of the "linux admin" types I know who buy old Sparcs for the novelty factor end up putting linux on them anyway..."This Solaris stuff is too hard".

    --
    Shutting down free speech with violence isn't fighting fascism. It IS fascism!
  11. Re:More bits doesn't automatically mean more speed by Anonymous Coward · · Score: 1, Funny

    2^32 bytes of memory should be enough for anyone!
    -new bill gates quote

  12. Re: OSNews by S.Lemmon · · Score: 2, Funny

    Ha! Shows what you know! Atari-STs came with a built-in 3.5" drive - not a 5.25" so I say nya! to your feeble attempt at computer critic criticism.

  13. Cleanup on aisle 3! by CaptainCarrot · · Score: 3, Funny
    Yeah, like that one time when I tripped over a coax while walking behind a row of Apollo DN660s and yanked it clean out of the connector. Yeesh! Tokens everywhere! I had to get the mop out, and here I was not even in the janitors' union. That by itself could have gotten me fired. As it was I didn't get caught for that, but the network went down and everyone knew it was my fault because of all the squashed token guts on the bottom of my shoes.

    We were finding the damn things in the ventilators for weeks afterward.

    --
    And the brethren went away edified.
  14. Liquid Video by scottgfx · · Score: 2, Funny

    At a TV station I used to work at, we used to send people on searches for "Liquid Video". Pretty much the same results! It's amazing the people that get hired at TV stations. Mr. Blinker-Fluid would be a genius compared to some in my industry of choice.

    At the station I'm at now, they send PA's to ask the engineers for the "ChromaKey for the Genlock". :)

    --
    It's mandatory to wash your hands before returning to the land of Dairy Queen.