make.sh changed
parent
a6ef605c6e
commit
7de0f850e4
6
make.sh
6
make.sh
|
|
@ -120,9 +120,9 @@ fi
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
cp Makefile.in Makefile
|
cp Makefile.in Makefile
|
||||||
sed -i "s/\\\$(CFLAGS)/$CFLAGS/g" Makefile
|
sed -i "" "s/\\\$(CFLAGS)/$CFLAGS/g" Makefile
|
||||||
sed -i "s/\\\$(LIBS)/$LIBS/g" Makefile
|
sed -i "" "s/\\\$(LIBS)/$LIBS/g" Makefile
|
||||||
sed -i "s/\\\$(LIB_VERSION)/$LIB_VERSION/g" Makefile
|
sed -i "" "s/\\\$(LIB_VERSION)/$LIB_VERSION/g" Makefile
|
||||||
make $1 $2 $3
|
make $1 $2 $3
|
||||||
|
|
||||||
if [ "$1" = "clean" ]; then
|
if [ "$1" = "clean" ]; then
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
#include "shared_func.h"
|
#include "shared_func.h"
|
||||||
|
|
||||||
#define COUNT 1000000
|
#define COUNT 10000000
|
||||||
|
#define LEVEL_COUNT 18
|
||||||
|
#define MIN_ALLOC_ONCE 32
|
||||||
#define LAST_INDEX (COUNT - 1)
|
#define LAST_INDEX (COUNT - 1)
|
||||||
|
|
||||||
static int *numbers;
|
static int *numbers;
|
||||||
|
|
@ -115,7 +117,7 @@ static int test_stable_sort()
|
||||||
Record *record;
|
Record *record;
|
||||||
void *value;
|
void *value;
|
||||||
|
|
||||||
result = skiplist_init_ex(&sl, 16, compare_record, 128);
|
result = skiplist_init_ex(&sl, 12, compare_record, 128);
|
||||||
if (result != 0) {
|
if (result != 0) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -184,7 +186,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
fast_mblock_manager_init();
|
fast_mblock_manager_init();
|
||||||
result = skiplist_init_ex(&sl, 12, compare_func, 128);
|
result = skiplist_init_ex(&sl, LEVEL_COUNT, compare_func, MIN_ALLOC_ONCE);
|
||||||
if (result != 0) {
|
if (result != 0) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue