Skip to content

Fibonacci algorithm implemented in C++ in different programming flavors

License

Notifications You must be signed in to change notification settings

yistarostin/fibonacci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

new

Here we compare Fibonacci algorithm implemented in C++ but in different programming styles, in order to understand which style compiles to shorter binary code and works faster. If you can imagine some other way how this algorithm could be implemented in C++, don't hesitate to submit a pull request.

To build it just run:

$ make

The result will be in summary.txt file.

To make test more intensive and run five times more cycles, do this:

$ make FACTOR=5

To analyze the quality of the code in this repo and make sure there are no hidden defects, run all static analyzers and style checkers:

$ make sa

You need to have Clang, Make, Clang-Tidy, and cpplint installed.

About

Fibonacci algorithm implemented in C++ in different programming flavors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 73.3%
  • Makefile 14.2%
  • C 12.5%