• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Test a benchmark for me...

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Originally posted by: dighn
Originally posted by: Kilrsat
Athlon XP (Barton) 2500+ (currently running stock).
1024mb of pc3200
Abit NF7-S
Seagate 200GB SATA drive

Average of two runs of your original benchmark: 2230

Average of two runs of a tweaked version of your benchmark: 4832.5

A few simple changes really make your code much better 🙂

where's the tweaked version??? or did you tweak the decompiled src yourself?

Tweaked it myself. I'll put it up somewhere in a minute. Basically it cuts down on the number of objects created. Instead of creating a StringBuilder, appending two strings to it, then sending it back to a string (only to create another one and repeat the process the next time through), it just creates one StringBuilder and keeps working off that single object.
 
AMD non-barton 2600+ (undervolted to 42.5)
512mb of Kingston HyperX
Epox EP-8RDA3I
Titan Geforce3
Atlas 10K II 36.7 SCSI drive w/ Adaptec 29160
2645

BTW, when running this program, it's case sensitive. java benchmark != java Benchmark
 
Just hit 4900 with this one 🙂

Class File

Could most likely squeeze even more out of it, but well, isn't worth it since I already doubled my system score from the 5 minutes I put into it.

Basically, never create objects inside of loops if you can get away with doing it elsewhere.
 
Originally posted by: Kilrsat

A few simple changes really make your code much better 🙂

If you're THAT bored, heres a command line scientific calculator that I've been working on 😛

Linky

I unfortunately don't have an extra copy of the string.h or bool.h files laying around. 🙁

Everything there works fine so far though. 😛
 
Originally posted by: Kilrsat
Just hit 4900 with this one 🙂

Class File

Could most likely squeeze even more out of it, but well, isn't worth it since I already doubled my system score from the 5 minutes I put into it.

Basically, never create objects inside of loops if you can get away with doing it elsewhere.

It's the 'Type-R' sticker that makes it so fast!

5080 on the optimized version.
 
Originally posted by: DAGTA
Originally posted by: Kilrsat
Just hit 4900 with this one 🙂

Class File

Could most likely squeeze even more out of it, but well, isn't worth it since I already doubled my system score from the 5 minutes I put into it.

Basically, never create objects inside of loops if you can get away with doing it elsewhere.

It's the 'Type-R' sticker that makes it so fast!

5080 on the optimized version.
That sticker is 5 extra mhz... or something like that.... 😛

 
Originally posted by: Nohr
AMD Barton 2500+ @ 2.21GHz (210FSB)
Asus A7N8X Deluxe (NF2) mobo
2x512MB PC3500 @ 210

System score: 2790
6225 with Kilrsat's optimized version.
 
Originally posted by: Kilrsat
Just hit 4900 with this one 🙂

Class File

Could most likely squeeze even more out of it, but well, isn't worth it since I already doubled my system score from the 5 minutes I put into it.

Basically, never create objects inside of loops if you can get away with doing it elsewhere.

A few more changes, and 8115... ok, I think that's as much as I can squeeze out of it. Updated the class file on my server if anyone else really wants to try. This was more an exercise for me just to see if I could remember how to optimize java code.
 
AMD Tbred 2100 @ 2.4
Abit NF7-S
1 GB Geil @ 420
ATI 9700 pro
Need more system specs, check my sig

3055 with the original
 
I had to upgrade my Java install to 1.5

And the command line is case sensitive.

Anyhoo

1365 on a P4 2.2, 512MB
 
Originally posted by: SuperSix
I had to upgrade my Java install to 1.5

And the command line is case sensitive.

Anyhoo

1365 on a P4 2.2, 512MB

wow...only 1365 on a p4? anyways...bump need a few more results
 
Originally posted by: tfinch2
Originally posted by: SuperSix
I had to upgrade my Java install to 1.5

And the command line is case sensitive.

Anyhoo

1365 on a P4 2.2, 512MB

wow...only 1365 on a p4? anyways...bump need a few more results

Yes.. really sucks eh? I wonder why?
 
Back
Top