mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
Create an overtly performance checking build.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
59d1e2789e
commit
b5074ac48c
@ -11,9 +11,11 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#define USE_BOOST_JSON
|
||||
//#define USE_NLOHMANN_JSON
|
||||
//#define USE_JSONCPP_JSON
|
||||
//#define TEST_JSON_PERFORMANCE
|
||||
|
||||
#define USE_BOOST_JSON // 32 seconds
|
||||
//#define USE_NLOHMANN_JSON // 58 seconds
|
||||
//#define USE_JSONCPP_JSON // 88 seconds
|
||||
|
||||
#ifdef USE_BOOST_JSON
|
||||
# include <boost/json.hpp>
|
||||
|
@ -40,6 +40,7 @@ int main() {
|
||||
const auto opcode_test = test_t(opcode_test_element);
|
||||
|
||||
TestRunner runner(opcode_test);
|
||||
#ifndef TEST_JSON_PERFORMANCE
|
||||
const auto good = runner.check();
|
||||
if (!good) {
|
||||
if (!opcode_bad) {
|
||||
@ -49,6 +50,7 @@ int main() {
|
||||
opcode_bad = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user