Skip to content

Commit

Permalink
version 5.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
chao.qianc committed Dec 4, 2018
1 parent efe9b34 commit 58e004a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions UnixBench/README
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ For information on adding tests into the benchmark, see "WRITING_TESTS".

===================== RELEASE NOTES =====================================

v5.1.5
Optimize whets.c:
When the main frequency of the CPU is higher, the time of N8 process is nonlinear.
More infomation, you can see: https://yq.aliyun.com/articles/674732

======================== JUN 2 2018 ==========================
v5.1.4
Optimize contetxt1.c:
Expand Down
1 change: 1 addition & 0 deletions UnixBench/src/whets.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ char *argv[];
{
for (ix=0; ix<xtra; ix++)
{
x = 0.75;
for(i=0; i<n8; i++)
{
x = sqrt(exp(log(x)/t1));
Expand Down
16 changes: 8 additions & 8 deletions unixbench.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/bash
#==============================================================#
# Description: Unixbench script, copy from :https://raw.githubusercontent.com/teddysun/across/master/unixbench.sh, change to v5.1.4 #
# Description: Unixbench script, copy from :https://raw.githubusercontent.com/teddysun/across/master/unixbench.sh, change to v5.1.5 #
# Author: Teddysun <[email protected]> #
# Intro: https://teddysun.com/245.html #
#==============================================================#
Expand All @@ -25,17 +25,17 @@ fi
mkdir -p ${cur_dir}
cd ${cur_dir}

# Download UnixBench5.1.4
if [ -s UnixBench-5.1.4.tar.gz ]; then
echo "UnixBench-5.1.4.tar.gz [found]"
# Download UnixBench5.1.5
if [ -s UnixBench-5.1.5.tar.gz ]; then
echo "UnixBench-5.1.5.tar.gz [found]"
else
echo "UnixBench-5.1.4.tar.gz not found!!!download now..."
if ! wget -c https://github.com/aliyun/byte-unixbench/releases/download/v5.1.4/UnixBench-5.1.4.tar.gz; then
echo "Failed to download UnixBench-5.1.4.tar.gz, please download it to ${cur_dir} directory manually and try again."
echo "UnixBench-5.1.5.tar.gz not found!!!download now..."
if ! wget -c https://github.com/aliyun/byte-unixbench/releases/download/v5.1.5/UnixBench-5.1.5.tar.gz; then
echo "Failed to download UnixBench-5.1.5.tar.gz, please download it to ${cur_dir} directory manually and try again."
exit 1
fi
fi
tar -zxvf UnixBench-5.1.4.tar.gz && rm -f UnixBench-5.1.4.tar.gz
tar -zxvf UnixBench-5.1.5.tar.gz && rm -f UnixBench-5.1.5.tar.gz
cd UnixBench/

#Run unixbench
Expand Down

0 comments on commit 58e004a

Please sign in to comment.