Skip to content

Instantly share code, notes, and snippets.

@amcintyre99
Last active June 4, 2017 21:28
Show Gist options
  • Save amcintyre99/f45c79b633073e367c9663247fe15c16 to your computer and use it in GitHub Desktop.
Save amcintyre99/f45c79b633073e367c9663247fe15c16 to your computer and use it in GitHub Desktop.
andrew@sherlock:~/dma/odbc_ibm$ node -v
v6.10.3
andrew@sherlock:~/dma/odbc_ibm$ node db2-bench-prepare-executeNonQuery.js
100000 queries issued in 39.69 seconds, 2519/sec : Prepare - ExecuteNonQuery
connection closed
andrew@sherlock:~/dma/odbc_ibm$ perf record -F 9999 -g node --perf-basic-prof db2-bench-prepare-executeNonQuery.js
100000 queries issued in 46.891 seconds, 2132/sec : Prepare - ExecuteNonQuery
connection closed
[ perf record: Woken up 405 times to write data ]
[ perf record: Captured and wrote 101.781 MB perf.data (489498 samples) ]
andrew@sherlock:~/dma/odbc_ibm$ perf script | gzip > perf1.gz
andrew@sherlock:~/dma/odbc_ibm$ ls -rtl
total 122576
-rw-r--r-- 1 andrew andrew 1037 Jul 2 2016 commons.js
-rw-r--r-- 1 andrew andrew 826 Jul 2 2016 db2-test-prepare.js
-rw-r--r-- 1 andrew andrew 1044 May 30 23:51 db2-bench-prepare-executeNonQuery.js
drwxrwxr-x 98 andrew andrew 12288 Jun 4 12:59 node_modules
-rw-rw-r-- 1 andrew andrew 25 Jun 4 16:36 isolate-0x2955280-v8.log
-rw------- 1 andrew andrew 106730500 Jun 4 16:37 perf.data
-rw-rw-r-- 1 andrew andrew 18750646 Jun 4 16:39 perf1.gz
andrew@quark:~/dma/perf$ gunzip -c perf1.gz | FlameGraph/stackcollapse-perf.pl | FlameGraph/flamegraph.pl --colors=js > perf1.svg
andrew@quark:~/dma/perf$ ls -rtl
total 19008
-rw-rw-r-- 1 andrew andrew 18750646 Jun 4 16:42 perf1.gz
drwxrwxr-x 7 andrew andrew 4096 Jun 4 17:24 FlameGraph
-rw-rw-r-- 1 andrew andrew 705185 Jun 4 17:27 perf1.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment