Skip to content

yumetodo/qsort

Repository files navigation

qsort

@t-kawa 氏作成のqsortをベンチマークする

元のコードは

qsort(qs9 qs10)

How to build and run benchmark

Require CMake to build.

Linux

$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=../bin -DCMAKE_BUILD_TYPE=Release ..
$ make install
$ cd ../bin
$ ./qsort_benchmark

Windows

Visual Studio

  1. Start cmake-gui.exe
  2. Specify source code path and build dir path
  3. Configure
  4. Set CMAKE_INSTALL_PREFIX to <some directory path>
  5. Configure
  6. Build
  7. Open Project
  8. In Solution Explorer, right-click INSTALL and select build
  9. start some shell(cmd.exe, powershell.exe, etc...)
  10. cd <some directory path>
  11. qsort_benchmark.exe

msys2

$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=../bin -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release ..
$ make install
$ cd ../bin
$ ./qsort_benchmark.exe

原作者情報

河村 知行
〒745-0845 山口県周南市河東町3-2 (株)曽呂利
t-kawa@crux.ocn.ne.jp