Tutorial

  • 04/11/2022
  • Public Content

Establishing a Performance Baseline

To set a performance baseline for the improvements that follow in this tutorial, build your project with these settings:
  1. Select
    Project > Properties
    . The project property pages window appears.
  2. Select
    Configuration Properties
    C/C++
    Optimization
    .
  3. For
    Optimization
    , select
    Minimum size
    from the dropdown list.
  4. For
    Configuration Properties
    C/C++
    Optimization [Intel C++]
    Interprocedural Optimization
    , select
    No
    .
  5. Select
    Configuration Properties
    C/C++
    Language [Intel C++]
    .
    For
    Enable C99 Support
    , select
    Yes
    .
  6. Select
    Configuration Properties
    C/C++
    Code Generation
    .
    For
    Floating Point Model
    , select
    Fast (/fp:fast)
    .
    The
    /fp:fast
    option sets the compiler to aggressively optimize floating point arithmetic operations. Using the
    /fp:precise
    or
    /fp:strict
    options may limit opportunities for auto vectorization.
  7. Rebuild the project, then run the executable (
    Debug > Start Without Debugging
    ). Record the execution time reported in the output. This is the baseline against which subsequent improvements will be measured.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.