File: prof.sh

package info (click to toggle)
node-glob 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816 kB
  • ctags: 46
  • sloc: sh: 75; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
export CDPATH=
set -e

tmp=${TMPDIR:-/tmp}
bash make-benchmark-fixture.sh
wd=$PWD
cd $tmp/benchmark-fixture

node --prof -e '
  var glob=require(process.argv[1]);
  glob("**/*.txt", function (er, files) {
    console.log(files.length)
  })
  //console.log(glob.sync("**/*.txt").length);
  ' "$wd"
mv *v8.log "$wd/v8.log"
cd "$wd"
node-tick-processor > profile.txt