benchmark
This commit is contained in:
parent
8cd674f881
commit
ea08d81d7b
3 changed files with 7 additions and 5 deletions
|
@ -77,7 +77,7 @@ extern HANDLE hProc;
|
|||
|
||||
/* decide whether it's polling mode or not
|
||||
*/
|
||||
static int no_irq = 1;
|
||||
static int no_irq = 0;
|
||||
|
||||
/* this will be set by open() and close() and shows wether the driver is running or not
|
||||
*/
|
||||
|
|
|
@ -148,7 +148,7 @@ __inline int get_core_no(void)
|
|||
void* server_task(void* e)
|
||||
{
|
||||
int sockfd, newsockfd, portno, clilen;
|
||||
char buffer[256];
|
||||
char buffer[512];
|
||||
struct sockaddr_in serv_addr, cli_addr;
|
||||
int n;
|
||||
uint64_t tmp1,tmp2;
|
||||
|
@ -214,7 +214,7 @@ void* server_task(void* e)
|
|||
|
||||
tmp1 = get_clock_tick();
|
||||
|
||||
for (n = 0; n < 1024*10 ; n++)
|
||||
for (n = 0; n < 1024 ; n++)
|
||||
{
|
||||
send(newsockfd,buffer,sizeof(buffer),0);
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ void* server_task(void* e)
|
|||
|
||||
void* client_task(void* e)
|
||||
{
|
||||
char dir[256];
|
||||
char dir[512];
|
||||
int sd;
|
||||
struct sockaddr_in sin;
|
||||
struct sockaddr_in pin;
|
||||
|
@ -272,7 +272,7 @@ void* client_task(void* e)
|
|||
/* spew-out the results and bail out of here! */
|
||||
kprintf("%s\n", dir);
|
||||
|
||||
for (n = 0; n < 1024*10; n++)
|
||||
for (n = 0; n < 1024; n++)
|
||||
recv(sd,dir,sizeof(dir),0);
|
||||
|
||||
// close(sd);
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
*/
|
||||
#define TCP_SND_BUF 2048
|
||||
|
||||
#define TCP_SND_QUEUELEN 2
|
||||
|
||||
/**
|
||||
* LWIP_BROADCAST_PING==1: respond to broadcast pings (default is unicast only)
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue