Skip to content

Commit

Permalink
Add 7z benchmark output
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed May 1, 2019
1 parent 8b7c024 commit 5ec7d5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@ elif [[ $COMMAND == "benchmark" ]]; then
if [[ $VARIABLE == 'ram' ]]; then
cat /var/log/nems/benchmarks/ram
fi
if [[ $VARIABLE == '7z' ]]; then
if [[ -f /var/log/nems/benchmarks/7z ]]; then
cat /var/log/nems/benchmarks/7z
else
echo 0
fi
fi


elif [[ $COMMAND == "alias" ]]; then
Expand Down
1 change: 1 addition & 0 deletions stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ if (file_exists('/var/log/nems/hw_model')) { // Don't run this until system is r
$benchmarks['ram'] = shell_exec('/usr/local/bin/nems-info benchmark ram');
$benchmarks['io'] = shell_exec('/usr/local/bin/nems-info benchmark io');
$benchmarks['mutex'] = shell_exec('/usr/local/bin/nems-info benchmark mutex');
$benchmarks['7z'] = shell_exec('/usr/local/bin/nems-info benchmark 7z');

// Put it together to send to the server
$data = array(
Expand Down

0 comments on commit 5ec7d5f

Please sign in to comment.