From: William Djaja Tjokroaminata Date: 2002-08-14T03:50:38+09:00 Subject: Re: Data_Make_Struct Considered Dangerous? Oh, I am writing a discrete event simulator that will be used to simulate communications network (Ethernet, ATM, TCP, routing, etc.) An event is equivalent to a (non-preemptible) interrupt in the corresponding object. I measured how many of these interrupts I can process within the real time. For an example of network simulator, see http://www.isi.edu/nsnam/ns/index.html, where they use Tcl/OTcl as the interface and C++ as the kernel. However, their model is rather different; they force the "split-object" model, where for each new object that you create, you need to create a Tcl class and a C++ class. I am interested in having the kernel in C++ too, but browsing the discussions in this newsgroup, I don't think it is worth it, at least for now; this Ruby C API gives me a headache already. I need to move on. Regards, Bill ========================================================================= Michael Campbell wrote: >> Pure Ruby : 31,000 events/sec >> Straight Ruby-to-C translation : 160,000 events/sec >> Some Ruby-C way : 222,000 events/sec >> (So far) The Furthest Ruby-C way: 312,000 events/sec > I've seen you bandy these "events/sec" figures around for a couple of > weeks. > For the unititated (me), could you tell me what an "event" is, and > how you are measuring them? > ===== > -- > Use your computer to help find a cure for cancer: http://members.ud.com/projects/cancer/ > Yahoo IM: michael_s_campbell > __________________________________________________ > Do You Yahoo!? > HotJobs - Search Thousands of New Jobs > http://www.hotjobs.com