test.cpp File Reference
#include <iostream>
#include <thread>
#include <bits/stdc++.h>
#include "parallel_sort.h"
#include "../sort/sort.h"
#include "../../test/data_generator.h"

Functions

int main ()
 

Function Documentation

int main ( )
11  {
12 
13  DataGenerator<vector<int>> dg;
14  vector<int> v = dg.random_data(10000000);
15 
16  time_t start = clock();
17 
18  alglib::sort::merge_sort(v.begin(), v.end());
19  /* alglib::mutithreaded::merge_sort(v.begin(), v.end()) ; */
20 
21  time_t end = clock();
22 
23  cout << "runtime: " << static_cast<double>(end - start) / CLOCKS_PER_SEC << endl;
24 
25 }
void merge_sort(RandomAccessIter first, RandomAccessIter last, const BinaryPred &LT)
Definition: sort.h:124