#include #include #include #include #include #include #include #include #include "skiplist.h" #include "logger.h" #include "shared_func.h" #define COUNT 1000000 #define LAST_INDEX (COUNT - 1) static int *numbers; static Skiplist sl; static SkiplistIterator iterator; static int compare_func(const void *p1, const void *p2) { return *((int *)p1) - *((int *)p2); } static int test_insert() { int i; int result; void *value; int64_t start_time; int64_t end_time; start_time = get_current_time_ms(); for (i=0; i