diff options
author | 2019-02-07 17:50:41 +0100 | |
---|---|---|
committer | 2019-02-07 17:51:11 +0100 | |
commit | 12a8c669f52c0e84d580c078cee849b25133b585 (patch) | |
tree | 1a0ddb6cc13f225e8a58833b8975f98b453a8d52 /sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/perf.html | |
parent | bd2aa3c75e0073ff07fb46b14b8b51926915d5c8 (diff) |
Add sdnr wt devicemanager
Add complete sdnr wireless transport app devicemanager
Change-Id: I433014ee579a3c8833b3b8f84c4087c5f776704f
Issue-ID: SDNC-575
Signed-off-by: Herbert Eiselt <herbert.eiselt@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/perf.html')
-rw-r--r-- | sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/perf.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/perf.html b/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/perf.html new file mode 100644 index 000000000..eecfc0a6a --- /dev/null +++ b/sdnr/wt/devicemanager/provider/src/main/resources/elasticsearch/plugins/head/test/perf.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> + +<html> + <head> + <meta charset="UTF-8"> + <title>Elasticsearch UI Performance Testing Harness</title> + <link rel="stylesheet" href="../_site/base/reset.css"> + <link rel="stylesheet" href="../_site/app.css"> + <script src="../_site/i18n.js" data-baseDir="../_site/lang" data-langs="en,fr"></script> + <script src="../_site/vendor.js"></script> + <script src="../_site/app.js"></script> + <script> + $( function() { + var widget; + var container = document.getElementById("demo"); + function build() { + widget = window.builder(); + widget.attach( demo ); + } + function remove() { + widget.remove(); + widget = null; + } + var args = location.search.substring(1).split("&").reduce(function(r, p) { + r[decodeURIComponent(p.split("=")[0])] = decodeURIComponent(p.split("=")[1]); return r; + }, {}); + var script0 = document.getElementsByTagName('script')[0]; + var s = document.createElement("script"); + s.src = '../src/' + args['demo']; + script0.parentNode.insertBefore(s, script0); + document.title = args['demo'].match(/([^\/]+)(\.js)$/)[1]; + document.getElementsByName("build")[0].addEventListener("click", build ); + document.getElementsByName("remove")[0].addEventListener("click", remove ); + document.getElementsByName("repeat")[0].addEventListener("click", function() { + console.time("build x 1000 in"); + for( var i = 0; i < 1000; i++ ) { + build(); + remove(); + } + console.timeEnd("build x 1000 in"); + }); + } ); + </script> + <link rel="icon" href="../_site/app/favicon.png" type="image/png"> + </head> + <body> + <div class="header"> + <button type="button" name="build">Build</button> + <button type="button" name="remove">Remove</button> + <button type="button" name="repeat">Build and Remove x 1000</button> + </div> + <div id="demo"></div> + </body> +</html> |