summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/compute-qpi-report/qpi.json250
-rw-r--r--examples/compute-qpi-report/report.ipynb71
2 files changed, 321 insertions, 0 deletions
diff --git a/examples/compute-qpi-report/qpi.json b/examples/compute-qpi-report/qpi.json
new file mode 100644
index 00000000..313b0ed5
--- /dev/null
+++ b/examples/compute-qpi-report/qpi.json
@@ -0,0 +1,250 @@
+{
+ "score": 1789,
+ "nodes": [
+ {
+ "name": "node-9",
+ "description": "QTIP Performance Index of compute",
+ "system_info": {
+ "product": [
+ "KVM"
+ ],
+ "disk": [
+ "53.7GB (5.9% used)"
+ ],
+ "os": [
+ "Ubuntu 14.04 trusty"
+ ],
+ "memory": [
+ "799.5/3945.4MB"
+ ]
+ },
+ "score": 1789,
+ "sections": [
+ {
+ "metrics": [
+ {
+ "score": 0.8011997053326527,
+ "workloads": [
+ {
+ "description": "workload",
+ "score": 0.906301071363719,
+ "result": "14973.3",
+ "name": "rsa_sign_512"
+ },
+ {
+ "description": "workload",
+ "score": 0.9057407614156525,
+ "result": "202818.2",
+ "name": "rsa_verify_512"
+ },
+ {
+ "description": "workload",
+ "score": 0.9153740089624267,
+ "result": "5311.7",
+ "name": "rsa_sign_1024"
+ },
+ {
+ "description": "workload",
+ "score": 0.8537774532382183,
+ "result": "75999.7",
+ "name": "rsa_verify_1024"
+ },
+ {
+ "description": "workload",
+ "score": 0.5396440129449838,
+ "result": "667.9",
+ "name": "rsa_sign_2048"
+ },
+ {
+ "description": "workload",
+ "score": 0.8264622658404671,
+ "result": "23074.2",
+ "name": "rsa_verify_2048"
+ },
+ {
+ "description": "workload",
+ "score": 0.7456140350877193,
+ "result": "85.0",
+ "name": "rsa_sign_4096"
+ },
+ {
+ "description": "workload",
+ "score": 0.7166840338080352,
+ "result": "6190.5",
+ "name": "rsa_verify_4096"
+ }
+ ],
+ "name": "ssl_rsa",
+ "description": "metric"
+ },
+ {
+ "score": 0.8825181751154869,
+ "workloads": [
+ {
+ "description": "workload",
+ "score": 0.8370586428196568,
+ "result": "455386.11k",
+ "name": "aes_128_cbc_16_bytes"
+ },
+ {
+ "description": "workload",
+ "score": 0.88480457910821,
+ "result": "508865.58k",
+ "name": "aes_128_cbc_64_bytes"
+ },
+ {
+ "description": "workload",
+ "score": 0.8915887914399657,
+ "result": "523945.47k",
+ "name": "aes_128_cbc_256_bytes"
+ },
+ {
+ "description": "workload",
+ "score": 0.9128156148324568,
+ "result": "543212.20k",
+ "name": "aes_128_cbc_1024_bytes"
+ },
+ {
+ "description": "workload",
+ "score": 0.8863232473771453,
+ "result": "523026.43k",
+ "name": "aes_128_cbc_8192_bytes"
+ }
+ ],
+ "name": "ssl_aes",
+ "description": "metric"
+ }
+ ],
+ "score": 0.8418589402240698,
+ "name": "SSL",
+ "description": "cryptography and SSL/TLS performance"
+ },
+ {
+ "metrics": [
+ {
+ "score": 0.44965595077729636,
+ "workloads": [
+ {
+ "description": "workload",
+ "score": 0.45041322314049587,
+ "result": "1.09 M",
+ "name": "dpi_pps"
+ },
+ {
+ "description": "workload",
+ "score": 0.4488986784140969,
+ "result": "10.19 G",
+ "name": "dpi_bps"
+ }
+ ],
+ "name": "dpi_throughput",
+ "description": "metric"
+ }
+ ],
+ "score": 0.44965595077729636,
+ "name": "DPI",
+ "description": "deep packet inspection"
+ },
+ {
+ "metrics": [
+ {
+ "score": 0.8277109922623959,
+ "workloads": [
+ {
+ "description": "workload",
+ "score": 0.8159569260890847,
+ "result": "8335.43",
+ "name": "triad"
+ },
+ {
+ "description": "workload",
+ "score": 0.8046851833547495,
+ "result": "8141.71",
+ "name": "add"
+ },
+ {
+ "description": "workload",
+ "score": 0.8622673849167483,
+ "result": "7043.29",
+ "name": "copy"
+ },
+ {
+ "description": "workload",
+ "score": 0.827934474689001,
+ "result": "6722.34",
+ "name": "scale"
+ }
+ ],
+ "name": "floatmem",
+ "description": "metric"
+ },
+ {
+ "score": 0.6916571989516922,
+ "workloads": [
+ {
+ "description": "workload",
+ "score": 0.7023780136591788,
+ "result": "8536.47",
+ "name": "triad"
+ },
+ {
+ "description": "workload",
+ "score": 0.6702975125995773,
+ "result": "8246.31",
+ "name": "add"
+ },
+ {
+ "description": "workload",
+ "score": 0.6987862883385272,
+ "result": "8521.74",
+ "name": "copy"
+ },
+ {
+ "description": "workload",
+ "score": 0.6951669812094855,
+ "result": "8472.50",
+ "name": "scale"
+ }
+ ],
+ "name": "intmem",
+ "description": "metric"
+ }
+ ],
+ "score": 0.7596840956070441,
+ "name": "memory",
+ "description": "cache and memory performance"
+ },
+ {
+ "metrics": [
+ {
+ "score": 1.4439459760636688,
+ "workloads": [
+ {
+ "description": "workload",
+ "score": 0.9324691580096908,
+ "result": "27044320.8",
+ "name": "dhrystone_lps"
+ },
+ {
+ "description": "workload",
+ "score": 1.955422794117647,
+ "result": "4255.2",
+ "name": "whetstone_MWIPS"
+ }
+ ],
+ "name": "arithmetic",
+ "description": "metric"
+ }
+ ],
+ "score": 1.4439459760636688,
+ "name": "arithmetic",
+ "description": "arithmetic computing speed"
+ }
+ ],
+ "spec": "https://git.opnfv.org/qtip/tree/resources/QPI/compute.yaml",
+ "baseline": "https://git.opnfv.org/qtip/tree/resources/QPI/compute-baseline.json"
+ }
+ ],
+ "name": "compute",
+ "description": "POD Compute QPI"
+}
diff --git a/examples/compute-qpi-report/report.ipynb b/examples/compute-qpi-report/report.ipynb
new file mode 100644
index 00000000..b4068a37
--- /dev/null
+++ b/examples/compute-qpi-report/report.ipynb
@@ -0,0 +1,71 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "scrolled": true
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD9CAYAAAC/fMwDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFuZJREFUeJzt3X3YXHV95/H310SsIA9qYmuTQKjGShYtQopV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f2xIjYCPxlZn6CcgjinIh4fX2834/6VVzKtvBWYH6Ur70e\nzEO3sR9QQrnfVH17OmXQ8Ip6aObyzHzDgL4d0Fn2e4GPRMQ1lND+EuVD1QWUgP2dMfZtTa31LsqI\ndQ3wjiynYZmsb5Pum5RviZ1ZH9vVdd7/Oo2+TZYTKynPzXrK5z8nUbb5lwOX1n3kfsrho9WUvn0e\n+APKC8+d1MHiEM4B9qpHLUbxF8BZEfFeSg8+UacfAPxVRCTlHccbATLzwYh4O3BhfaFaTRk0TaqJ\nUyvUUdGDWU4E9wLgf9e3bo86Ub63+6HMvHArLd9ejbYu+zbauuzbI2hbGOE/EnaljDgeRzkueNQs\n1zNtUX6A8w3gmq28Qdmr0di30di3R9CjaoQfEe/k4WflPDcz3zfm9ZxK+XCl68OZ+anOPI9ILYPU\nD1wn2sAOpHywZa+21DBprzofurqN9bFvoxm2b4+0R1XgS5JGN+vf0pEkPTIMfElqhIEvSY0w8CWp\nEQa+JDXi/wPL3cFfQ6ukQgAAAABJRU5ErkJggg==\n",
+ "text/plain": [
+ "<matplotlib.figure.Figure at 0x7f5982b410d0>"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "import matplotlib.pyplot as plt\n",
+ "from asq.initiators import query\n",
+ "import json\n",
+ "\n",
+ "workload_name = []\n",
+ "workload_score = []\n",
+ "project_name = 'workspace'\n",
+ "\n",
+ "with open(\"qpi.json\".format(project_name)) as result:\n",
+ " final = json.load(result)\n",
+ "\n",
+ "qpi = query(final['nodes']).where(lambda child: child['name'] == 'node-9') \\\n",
+ " .select_many(lambda child: child['sections']) \\\n",
+ " .where(lambda child: child['name'] == 'SSL') \\\n",
+ " .select_many(lambda child: child['metrics']).to_list()\n",
+ "\n",
+ "for wl in qpi[0]['workloads']:\n",
+ " workload_name.append(wl['name'])\n",
+ " workload_score.append(wl['score'])\n",
+ "\n",
+ "x_axis = range(len(workload_name))\n",
+ "\n",
+ "plt.bar(x_axis, workload_score)\n",
+ "plt.xticks(x_axis, workload_name)\n",
+ "plt.show()"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.12"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 1
+}