2018-03-18 09:09:49 +08:00
|
|
|
#!/bin/sh
|
2019-03-18 22:51:26 +08:00
|
|
|
# This is a metadata performance test for netCDF-4.
|
|
|
|
# Dennis Heimbigner
|
2018-03-18 09:09:49 +08:00
|
|
|
|
|
|
|
#PROF=1
|
|
|
|
#DEBUG=1
|
|
|
|
#MEM=1
|
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Testing performance of nc_create and nc_open on file with large metadata"
|
|
|
|
|
|
|
|
ARGS="--treedepth=6 \
|
|
|
|
--ngroups=2 \
|
|
|
|
--ngroupattrs=100 \
|
|
|
|
--ndims=100 \
|
|
|
|
--ntypes=10 \
|
|
|
|
--nvars=100 \
|
|
|
|
--varrank=2 \
|
|
|
|
--nvarattrs=500"
|
|
|
|
|
|
|
|
echo "timing bigmeta:"
|
2018-04-15 02:01:52 +08:00
|
|
|
${execdir}/bigmeta $ARGS
|
2018-03-18 09:09:49 +08:00
|
|
|
echo "timing openbigmeta:"
|
2018-04-15 02:01:52 +08:00
|
|
|
${execdir}/openbigmeta
|
2018-03-18 09:09:49 +08:00
|
|
|
if test "x$PROF" = x1 ; then
|
|
|
|
rm -f perftest.txt
|
|
|
|
gprof openbigmeta gmon.out >perftest.txt
|
|
|
|
fi
|
2018-04-22 10:10:47 +08:00
|
|
|
|