mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-26 21:18:36 +00:00
Create an overtly performance checking build.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
1 parent
59d1e2789e
commit
b5074ac48c
2 files changed
+7
-3
No files matched your search
@@ -11,9 +11,11 @@
|
|||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#define USE_BOOST_JSON
|
//#define TEST_JSON_PERFORMANCE
|
||||||
//#define USE_NLOHMANN_JSON
|
|
||||||
//#define USE_JSONCPP_JSON
|
#define USE_BOOST_JSON // 32 seconds
|
||||||
|
//#define USE_NLOHMANN_JSON // 58 seconds
|
||||||
|
//#define USE_JSONCPP_JSON // 88 seconds
|
||||||
|
|
||||||
#ifdef USE_BOOST_JSON
|
#ifdef USE_BOOST_JSON
|
||||||
# include <boost/json.hpp>
|
# include <boost/json.hpp>
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ int main() {
|
|||||||
const auto opcode_test = test_t(opcode_test_element);
|
const auto opcode_test = test_t(opcode_test_element);
|
||||||
|
|
||||||
TestRunner runner(opcode_test);
|
TestRunner runner(opcode_test);
|
||||||
|
#ifndef TEST_JSON_PERFORMANCE
|
||||||
const auto good = runner.check();
|
const auto good = runner.check();
|
||||||
if (!good) {
|
if (!good) {
|
||||||
if (!opcode_bad) {
|
if (!opcode_bad) {
|
||||||
@@ -49,6 +50,7 @@ int main() {
|
|||||||
opcode_bad = true;
|
opcode_bad = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user