Package iocp_inet

APN The iocp_inet package is part of the iocp extension that implements support for I/O completion ports on Windows. It provides the socket command which is a drop-in replacement for Tcl's socket command with much better performance.

Numbers using Tcl sockets (localhost):

D:\src\iocp\tests>tclsh netbench.tcl client -writesize 4096 -repeat 3
16.49 82440192 5.00 tcl->tcl
16.69 83468288 5.00 tcl->tcl
16.85 84234240 5.00 tcl->tcl

Numbers using iocp::inet::socket (localhost):

D:\src\iocp\tests>tclsh netbench.tcl client -writesize 4096 -repeat 3 -provider iocp
231.71 1158864896 5.00 iocp
227.11 1135546368 5.00 iocp
239.61 1198247936 5.00 iocp

The package is available from https://sourceforge.net/projects/magicsplat/files/iocp/ .

Documentation at https://iocp.magicsplat.com .