Skip to content

Commit 865cece

Browse files
author
nqdinh
committed
benchmark script
1 parent 5343acb commit 865cece

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

benchmark

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
readonly curdir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2+
logfile=$curdir/results.md
3+
start=$(date +%s)
4+
echo 'benchmarking...'
5+
echo "# $(date)" >> $logfile
6+
echo >> $logfile
7+
echo '## loopback-connector-mysql' >> $logfile
8+
node loopback-connector-mysql >> $logfile
9+
echo '25% done'
10+
echo >> $logfile
11+
echo "# Took" >> $logfile
12+
echo $took >> $logfile
13+
echo >> $logfile
14+
echo '---' >> $logfile
15+
echo >> $logfile
16+
echo "Took $took"

0 commit comments

Comments
 (0)