summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-07-03 15:32:48 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-07-03 15:32:48 (GMT)
commit476c809cf4007f3d6294188c4cde125a1295d40c (patch)
tree7c121bde5bf77e2ec4baf42033f0bff3c7d8ae6a
parent19d4e8ae2e472dd364ffeff1e096d3f75d5251c4 (diff)
downloaduscxml-476c809cf4007f3d6294188c4cde125a1295d40c.zip
uscxml-476c809cf4007f3d6294188c4cde125a1295d40c.tar.gz
uscxml-476c809cf4007f3d6294188c4cde125a1295d40c.tar.bz2
Reverted test-performance
-rw-r--r--test/src/test-performance.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/test/src/test-performance.cpp b/test/src/test-performance.cpp
index 922b1ca..4142b9d 100644
--- a/test/src/test-performance.cpp
+++ b/test/src/test-performance.cpp
@@ -1,7 +1,5 @@
#include "uscxml/config.h"
#include "uscxml/Interpreter.h"
-#include "uscxml/plugins/Factory.h"
-#include "uscxml/debug/Benchmark.h"
#include <chrono>
#include <iostream>
@@ -9,19 +7,6 @@
using namespace uscxml;
using namespace std::chrono;
-class InterpreterCallbacks {
-public:
- InterpreterCallbacks() {}
- void beforeEnterState(const std::string& stateName, std::function<void (const std::string& sessionId)> function) {
- _beforeEnterStates.push_back(function);
- }
-
- void operator() {
- }
-
- std::list<std::function<void (const std::string& sessionId)> > _beforeEnterStates;
-};
-
int main(int argc, char** argv) {
if (argc < 2) {
std::cout << "Expected filename as first parameter" << std::endl;
@@ -30,17 +15,6 @@ int main(int argc, char** argv) {
Interpreter interpreter = Interpreter::fromURL(argv[1]);
- ActionLanguage al;
- al.microStepper = Factory::getInstance()->createMicroStepper("large", (MicroStepCallbacks*)interpreter);
- interpreter.setActionLanguage(al);
-
- InterpreterCallbacks callbacks;
- callbacks.beforeEnterState("mark", [](const std::string& sessionId) {
- std::cout << "foo";
- });
-
-
-
InterpreterState state;
system_clock::time_point start = system_clock::now();
@@ -69,5 +43,4 @@ int main(int argc, char** argv) {
iterations = 0;
}
}
- Benchmark::report(std::cout);
}