summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-08 11:37:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-08 11:37:32 +0200
commitbaaf701e68a1b9f184058f73535d3caf77be1188 (patch)
tree88f2319ea4d5acfd1e57f817fedec943a4f3ea18 /test/main
parentde9ac16258499668a958e9f02f217ff8574ccba8 (diff)
Removed benchmark
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/main b/test/main
index ac50366..7f0dad5 100755
--- a/test/main
+++ b/test/main
@@ -5,7 +5,6 @@ typeset -i benchmark=0 test_extended=0 test_security=0 help=0
while [[ $1 == --* ]] {
case $1 in
--all) test_extended=1; test_security=1 ;;
- --benchmark) benchmark=1 ;;
--extended) test_extended=1 ;;
--help) help=1 ;;
--security) test_security=1 ;;
@@ -152,21 +151,3 @@ if ((test_security)) {
}
print -P '\n%F{green}Test passed%F{default}'
-
-if ((benchmark)) {
- trap '' ZERR
- echo "## some benchmarks now..."
- TIMEFMT='%*E real, %*U user, %*S system - %P%% CPU - %J'
-
- echo "# adding 10000 vars (this could take a _long_ time)"
- $envstore clear
- for i in {0..10000}; {
- (( i % 1000 )) || echo "# $((10000-i)) to go"
- echo "$i $i$i$i" >> $store_file
- }
- echo
-
- repeat 2 {time $envstore eval > /dev/null}
- time $envstore rm 999 > /dev/null
- repeat 2 {time $envstore clear}
-}