#include #include #include #define EE_FILEIO using namespace std; #include uint32_t msg_length_max = 300000000; int main(int argc, char* argv[]) try { char* endptr = 0; int elements; if (argc > 0) { elements = strtol(argv[1], &endptr, 10); } else { elements = 70000; } list lst; for (int j = 1; j <= elements; ++j) { lst.push_back(j*3); } Msgs ms; SendBuffer* buf(new SendBuffer(8192)); HANDLE hcom = INVALID_HANDLE_VALUE; hcom = CreateFile("eeout", GENERIC_READ| GENERIC_WRITE,FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL,0); if (hcom == INVALID_HANDLE_VALUE) exit(7); buf->sock_ = hcom; clock_t start(clock()); ms.Send(buf, lst); clock_t end(clock()); cout << "That took " << end - start << "\n"; delete buf; return 1; } catch (failure const& ex) { cout << "failure exception: " << ex.what(); }