Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Mac Desktops > G5 - BASIC performance :)

G5 - BASIC performance :)
Thread Tools
aglo
Fresh-Faced Recruit
Join Date: Jun 2003
Location: Sweden
Status: Offline
Reply With Quote
Jul 20, 2004, 09:37 AM
 
Hi.

This will probably sound strange, but... I have made some games in Chipmunk Basic (yeah) and I am curious to know if they will run faster on a G5 than on my G4. So I wonder if some of you G5 owners can help me with this, by running a simple program which repeats a string check 1000000 times and then reports how long it took. It's very easy and running the program will not take more than a few seconds (since that is what it takes on my computer).

Instructions:

* Download Chipmunk Basic from http://www.nicholson.com/rhn/basic/ (direct download link: http://www.nicholson.com/rhn/files/C...59b3MacOSX.sit - only 300 KB)

* Run Chipmunk Basic and paste this text:

10 t = timer
20 for l = 1 to 1000000
30 e = instr("a","b")
40 next
50 print timer-t

* Type "run" and press Enter.

* Report the result.



Thanks in advance.
     
drive-thru
Senior User
Join Date: Sep 2003
Location: UK
Status: Offline
Reply With Quote
Jul 20, 2004, 10:31 AM
 
As no G5 owners have responded yet I thought I would give them some incentive (plus I was bored), so...

...my beast of a G3 800MHz iBook did it in 2.833333

G5s bring it on!!
     
Lateralus
Moderator Emeritus
Join Date: Sep 2001
Location: Arizona
Status: Offline
Reply With Quote
Jul 20, 2004, 11:54 AM
 
G4 1.40GHz - 1.933333
I like chicken
I like liver
Meow Mix, Meow Mix
Please de-liv-er
     
Thinine
Mac Elite
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 20, 2004, 01:25 PM
 
This test should be purely clock bound, as it takes advantage of absolutely nothing chip specific. So of course the G5 will be faster.
     
cal6n
Junior Member
Join Date: Nov 2003
Location: Brighton, UK
Status: Offline
Reply With Quote
Jul 20, 2004, 03:42 PM
 
G4 1.25 GHz DP

Chipmunk BASIC v3.5.9b3
> 10 t = timer
> 20 for l = 1 to 1000000
> 30 e = instr("a","b")
> 40 next
> 50 print timer-t
>
>run
2.2
>



edit: coming soon G5LC result!
( Last edited by cal6n; Jul 20, 2004 at 07:07 PM. )
G5LC, 6 GB 1.07 TB 6800 GT & 30" (Workhorse)
1.4 GHz Cube 512 MB 60 GB (headless folding)
15" 1.67 GHz Ali G4 PB, 1.5 GB 100 GB (VJ rig 1 & Uni)
15" 1 GHz Ali G4 PB, 1.5 GB 60 GB (VJ rig 2)
G4 800 MHz Ti PB, 512 MB 60 GB (Lounge)
     
Maflynn
Professional Poster
Join Date: Mar 2002
Location: Boston
Status: Offline
Reply With Quote
Jul 20, 2004, 05:30 PM
 
G5 2.0GHz

> 10 t = timer
> 20 for l = 1 to 1000000
> 30 e = instr("a","b")
> 40 next
> 50 print timer-t
>
>run
1.583333
>
     
driven
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Jul 20, 2004, 08:05 PM
 
G5 2.0 Ghz ... 1.37

This is amazing. It takes me back 20 years.
Line numbers ... how cute!
- MacBook Air M2 16GB / 512GB
- MacBook Pro 16" i9 2.4Ghz 32GB / 1TB
- MacBook Pro 15" i7 2.9Ghz 16GB / 512GB
- iMac i5 3.2Ghz 1TB
- G4 Cube 500Mhz / Shelf display unit / Museum display
     
willab
Mac Enthusiast
Join Date: Jun 2003
Status: Offline
Reply With Quote
Jul 20, 2004, 09:47 PM
 
dual 1.8 G5
1.616667 seconds
Dual 1.8 GHz G5
PB G4 1.67 GHz
     
Tenacious Dyl
Mac Enthusiast
Join Date: Dec 2003
Location: Ann Arbor, Michigan
Status: Offline
Reply With Quote
Jul 20, 2004, 10:17 PM
 
2.33333 seconds on my 1ghz g4 powerbook.
Not so bad comparitively for my machine...
yep.
     
driven
Addicted to MacNN
Join Date: May 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Jul 20, 2004, 10:28 PM
 
My best time (in repeated runs) got down to 1.29.

My box rocks!
<GRIN>
- MacBook Air M2 16GB / 512GB
- MacBook Pro 16" i9 2.4Ghz 32GB / 1TB
- MacBook Pro 15" i7 2.9Ghz 16GB / 512GB
- iMac i5 3.2Ghz 1TB
- G4 Cube 500Mhz / Shelf display unit / Museum display
     
legacyb4
Mac Elite
Join Date: May 2001
Location: Vancouver
Status: Offline
Reply With Quote
Jul 20, 2004, 10:34 PM
 
G5 1.6

Chipmunk BASIC v3.5.9b3
> 10 t = timer
> 20 for l = 1 to 1000000
> 30 e = instr("a","b")
> 40 next
> 50 print timer-t
>
>run
1.783333
>run
1.766667
>run
1.75
Macbook (Black) C2D/250GB/3GB | G5/1.6 250GBx2/2.0GB
Free Mobile Ringtone & Games Uploader | Flickr | Twitter
     
PJayDubya
Fresh-Faced Recruit
Join Date: Jun 2003
Location: Central Texas
Status: Offline
Reply With Quote
Jul 20, 2004, 11:37 PM
 
Chipmunk BASIC v3.5.9b3
>
> 10 t = timer
> 20 for l = 1 to 1000000
> 30 e = instr("a","b")
> 40 next
> 50 print timer-t
>
>run
1.25
>


G5 Dual 2.0ghz 4GIG RAM
     
Madison
Mac Enthusiast
Join Date: Nov 1999
Location: Hanson, MA
Status: Offline
Reply With Quote
Jul 21, 2004, 05:14 AM
 
My dual 2.0 G5 with 512mb RAM:

1.416667

Cute!
     
aglo  (op)
Fresh-Faced Recruit
Join Date: Jun 2003
Location: Sweden
Status: Offline
Reply With Quote
Jul 21, 2004, 09:34 PM
 
Many thanks to everyone who has contributed with their results. The reason why I chose this test is that string checks (although more complicated than checking if "b" is represented in "a") is what slows down most of my games. It seems like upgrading to G5 will help - on my own computer the test takes 4-5 seconds (!). As Thinine pointed out this was probably what one could expect, but you never know with BASIC...
     
davidflas
Mac Elite
Join Date: Sep 2000
Location: Boynton Beach, Florida, USA
Status: Offline
Reply With Quote
Jul 22, 2004, 11:51 AM
 
Rev A. dual 1.8 G5


>10 t = timer
20 for l = 1 to 1000000
30 e = instr(>>"a","b")
40 next
50 print timer-t
>>>run
1



I ran the test several times, most of the time it would say 1, but I got 2 a few times. No decimal places, am I running the test correctly?
2.7Ghz 15" Mid 2012 MBP 16GB RAM 7.2k 750GB HD anti-glare display|64GB iPad4 ATT LTE|
     
Spliffdaddy
Posting Junkie
Join Date: Oct 2001
Location: South of the Mason-Dixon line
Status: Offline
Reply With Quote
Jul 22, 2004, 12:14 PM
 
Dual Athlon running WinXP Pro & TrueBasic application

10 let t = timer
20 for v = 1 to 1000000
30 next v
40 print t
50 end

0


app crashed upon exiting. gotta love it.
     
aglo  (op)
Fresh-Faced Recruit
Join Date: Jun 2003
Location: Sweden
Status: Offline
Reply With Quote
Jul 22, 2004, 01:13 PM
 
Originally posted by davidflas:
Rev A. dual 1.8 G5


>10 t = timer
20 for l = 1 to 1000000
30 e = instr(>>"a","b")
40 next
50 print timer-t
>>>run
1



I ran the test several times, most of the time it would say 1, but I got 2 a few times. No decimal places, am I running the test correctly?
I don't know which BASIC dialect you are using, but it's not Chipmunk Basic since line 30 (with the ">>") would result in a Syntax error. Probably TIMER in this variant of BASIC returns an integer value.
     
davidflas
Mac Elite
Join Date: Sep 2000
Location: Boynton Beach, Florida, USA
Status: Offline
Reply With Quote
Jul 22, 2004, 01:48 PM
 
2nd attempt....


Chipmunk BASIC v3.5.9b3
>10 t = timer
>20 for l = 1 to 1000000
>30 e = instr("a","b")
>40 next
>50 print timer-t
>run
1.5
>run
1.45
>run
1.466667
>run
1.433333


Rev A. Dual 1.8Ghz G5 w/512MB ram
2.7Ghz 15" Mid 2012 MBP 16GB RAM 7.2k 750GB HD anti-glare display|64GB iPad4 ATT LTE|
     
Mac Hammer Fan
Forum Regular
Join Date: Jul 2004
Location: Belgium
Status: Offline
Reply With Quote
Jul 22, 2004, 04:34 PM
 
7.016667
Time to buy an new computer... (a G5)


****
G3 Beige with G4 ZIF 500
768 MB RAM
ATI Radeon 7000 64MB
Sonnet ATA 66 PCI card with 80 GB Barracuda
     
Lateralus
Moderator Emeritus
Join Date: Sep 2001
Location: Arizona
Status: Offline
Reply With Quote
Jul 22, 2004, 04:50 PM
 
Originally posted by Mac Hammer Fan:
7.016667
Time to buy an new computer... (a G5)


****
G3 Beige with G4 ZIF 500
768 MB RAM
ATI Radeon 7000 64MB
Sonnet ATA 66 PCI card with 80 GB Barracuda
Naw.

Time to buy the new G3/750GX upgrade @ 1.1GHz with 1MB of L2 from PowerLogix.
I like chicken
I like liver
Meow Mix, Meow Mix
Please de-liv-er
     
Mac Hammer Fan
Forum Regular
Join Date: Jul 2004
Location: Belgium
Status: Offline
Reply With Quote
Jul 22, 2004, 05:31 PM
 
Originally posted by PowerMacMan:
Naw.

Time to buy the new G3/750GX upgrade @ 1.1GHz with 1MB of L2 from PowerLogix.

I prefer a new computer.
My graphics card, a PCI Radeon 7000/64 is a real bottleneck.
And so is the bus speed. This old Mac is still fine for basic work, but for video-editing I need a Dual G4 or G5.

And besides, I have read a lot of bad reviews about Powerlogix upgrades (from readers) at www.xlr8yourmac.com
And for conversion to mp4, any G3 processor will be insufficient.


     
pingvinen
Fresh-Faced Recruit
Join Date: Feb 2003
Location: Denmark
Status: Offline
Reply With Quote
Jul 22, 2004, 07:08 PM
 
PowerMac Dual 1.8GHz, 256mb DDR

Chipmunk BASIC v3.5.9b3
>10 t = timer
>20 for l = 1 to 1000000
>30 e = instr("a","b")
>40 next
>50 print timer -t
>run
1.466667
>run
1.583333
>run
1.466667
>run
1.483333
>run
1.566667
     
   
Thread Tools
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 06:27 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,