-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martinho Fernandes
committed
Jan 24, 2014
1 parent
503fee3
commit ab719a2
Showing
15 changed files
with
284 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <nonius/nonius.h++> | ||
|
||
#include <iterator> | ||
#include <string> | ||
|
||
int main() { | ||
nonius::configuration cfg; | ||
nonius::benchmark benchmarks[] = { | ||
{ "to_string(42)", []{ return std::to_string(42); } }, | ||
{ "to_string(4.2)", []{ return std::to_string(4.2); } }, | ||
}; | ||
|
||
nonius::go(cfg, std::begin(benchmarks), std::end(benchmarks)); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Nonius - C++ benchmarking tool | ||
// | ||
// Written in 2014 by Martinho Fernandes <[email protected]> | ||
// | ||
// To the extent possible under law, the author(s) have dedicated all copyright and related | ||
// and neighboring rights to this software to the public domain worldwide. This software is | ||
// distributed without any warranty. | ||
// | ||
// You should have received a copy of the CC0 Public Domain Dedication along with this software. | ||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/> | ||
|
||
// Main header | ||
|
||
#ifndef NONIUS_HPP | ||
#define NONIUS_HPP | ||
|
||
#include <nonius/clock.h++> | ||
#include <nonius/benchmark.h++> | ||
#include <nonius/configuration.h++> | ||
#include <nonius/stdout_reporter.h++> | ||
#include <nonius/go.h++> | ||
|
||
#endif // NONIUS_HPP | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.