#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/stat.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<sys/un.h>
#include<errno.h>
#include<stddef.h>
#include<unistd.h>
#include<sys/time.h>
//gcc -o performance_test performance_test.c -lpthread
//performance_test CORE_NUM
//cat /proc/cpuinfo | grep processor | wc -l //will show core number
#define MAX_CORE_NUM 256
#define RUN_SECONDS 20
#define WAIT_END_SECONDS 2
#define UNIT_100 100000
unsigned long m_thread_runticks[MAX_CORE_NUM];
int m_finished = 0;
static unsigned long performance_test(void){
//about 1us once
int test_sum = 0, i;
for (i=0; i < 280; i++){
test_sum += i;
}
test_sum /= 10;
te