View unanswered posts | View active topics It is currently Mon Apr 27, 2026 6:29 am



Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
 A SWATH vs. TWX challenge 
Author Message
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: A SWATH vs. TWX challenge
There's a lot more going on than adding nodes to a linked list. The parser is parsing thousands of incoming course plots (a fine benchmark of parser speed) and the script is retrieving the parsed courses from the database (a heavy JNI workload).

Yes, the CPU load on the script side is minimal, just iterating over courses and setting bits in a BitSet. But I highly doubt any script for any helper is CPU-bound rather than IO-bound.

_________________
Suddenly you're Busted!


Sat Sep 03, 2011 1:40 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: A SWATH vs. TWX challenge
Mongoose wrote:
There's a lot more going on than adding nodes to a linked list. The parser is parsing thousands of incoming course plots (a fine benchmark of parser speed) and the script is retrieving the parsed courses from the database (a heavy JNI workload).


Except parsing courses isn't exactly difficult, either.

Mongoose wrote:
Yes, the CPU load on the script side is minimal, just iterating over courses and setting bits in a BitSet. But I highly doubt any script for any helper is CPU-bound rather than IO-bound.


IO is in the microsecond range. Compared to ping,
that's irrelevant.

I can easily tax the processing power of TWX proxy
and make scripts CPU-bound. Very very easily.

When people run comprehensive benchmarks of
software or hardware, do they just run one test
or do they compare multiple methodologies and
contrast their strengths and weaknesses?

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Sep 03, 2011 1:44 pm
Profile ICQ WWW
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: A SWATH vs. TWX challenge
Singularity wrote:
Except parsing courses isn't exactly difficult, either.


It's probably the most CPU-intensive thing a helper does.

Singularity wrote:
IO is in the microsecond range. Compared to ping,
that's irrelevant.


IO includes network and disk access. These are the main things limiting any script. Not CPU.

Singularity wrote:
I can easily tax the processing power of TWX proxy
and make scripts CPU-bound. Very very easily.


I doubt that. It would have to be a pretty contrived benchmark to single out the CPU, i.e., working on a large amount of data in RAM without making any use of the database or the network. What scripts have you written that do that? About the only thing I can think of would be a bubble finder or some sort of traffic analysis. (If the entire database is cached, it would eliminate disk IO... but even then, SWATH is hindered by JNI and puts in a good showing despite that.)

What kind of script do you think would make a good benchmark?

_________________
Suddenly you're Busted!


Sat Sep 03, 2011 1:49 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: A SWATH vs. TWX challenge
Mongoose wrote:
It's probably the most CPU-intensive thing a helper does.


Parsing courses is no where near as CPU-intensive as actually calculating them from a map.

Mongoose wrote:
IO includes network and disk access. These are the main things limiting any script. Not CPU.


IO is disk access and RAM access. Network speed is latency. IO is not a big problem in my scripts. CPU definitely is.

Mongoose wrote:
I doubt that. It would have to be a pretty contrived benchmark to single out the CPU, i.e., working on a large amount of data in RAM without making any use of the database or the network. What scripts have you written that do that?


Bubble searches, traffic analysis, optimal course searches, array sorts, etc, etc.

Mongoose wrote:
About the only thing I can think of would be a bubble finder or some sort of traffic analysis. (If the entire database is cached, it would eliminate disk IO... but even then, SWATH is hindered by JNI and puts in a good showing despite that.)


Generally, yes, I cache the database into a set of arrays. In fact TWX proxy automatically caches the entire database if you let it.

Mongoose wrote:
What kind of script do you think would make a good benchmark?


I think a wide variety of scripts would be a better approach. ZTM, world SST, bubble stuff, traffic analysis, sorts, etc. If the goal is to honestly compare the speed of both, why not do exactly that?

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Sep 03, 2011 3:03 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 34 posts ]  Go to page Previous  1, 2, 3

Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.