Skip to content

Latest commit

 

History

History
62 lines (52 loc) · 2.56 KB

README.md

File metadata and controls

62 lines (52 loc) · 2.56 KB

int-dec-format-tests

Comparison of decimal integers formatting algorithms

mac linux
Build Status Build Status

Task

Convert vector of integer values to char buffer.

Algorithms

Usage

  • install boost
  • verify correctness:
> cmake -H. -B_builds/make-debug -DCMAKE_BUILD_TYPE=Debug
> cmake --build _builds/make-debug
> (cd _builds/make-debug && ctest -VV)
  • run tests:
> cmake -H. -B_builds/make-release -DCMAKE_BUILD_TYPE=Release
> cmake --build _builds/make-release
> (cd _builds/make-release && ctest -VV)

Arch 32-bit build

> cmake -H. -B_builds/make-release -DCMAKE_BUILD_TYPE=Release -DBUILD32=ON
> cmake --build _builds/make-release
> (cd _builds/make-release && ctest -VV)

Options

  • Number of iterations can be reduced using -DFAST_TEST=ON option
  • If -DLONG_TEST option is ON, number of iterations increased and additional 8Mb test added
  • Set Algo*::enabled to false to exclude algorithm from test

Results