Skip to content

Commit

Permalink
Merge pull request #8 from MeganerdDev/local-benchmark
Browse files Browse the repository at this point in the history
Add concept local benchmark.
  • Loading branch information
MeganerdDev authored Apr 6, 2024
2 parents 5d815ee + c180c4e commit 4165ccb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/benchmark-aarch64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

./build/aarch64/night-vision &
PROGRAM_PID=$!

top -b -d 1 -p $PROGRAM_PID | head -n 20 > night-vision-usage.txt

sleep 10
kill $PROGRAM_PID
9 changes: 9 additions & 0 deletions test/benchmark-amd64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

./build/amd64/night-vision &
PROGRAM_PID=$!

top -b -d 1 -p $PROGRAM_PID | head -n 20 > night-vision-usage.txt

sleep 10
kill $PROGRAM_PID

0 comments on commit 4165ccb

Please sign in to comment.