Hello Ryu's Team,
I am considering using Ryu's packet library as a substitute for dpkt.
Unfortunately, I got some very odd results about the performance of the
packet library, specifically I noticed that Ryu's packet library is 5~7x
slower than dpkt in packing and unpacking raw packets.
I got some free time today, and after digging deeper into the code I
noticed that the performance bottleneck is mainly due to netaddr library.
It is being used for very basic operations in addrconv.py, and can easily
be substituted with struct.pack/unpack.
I removed the code that was using netaddr library, and now the performance
is on par with dpkt, about 10% slower on unpacking, and two times slower on
packing. I am willing to submit a patch for this, but I am not sure if this
is desired or whether this is the correct solution.
Best Regards,
Omid
P.S. For the benchmark test, I used a normal ip/udp and ip/tcp packet.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel