From baaf701e68a1b9f184058f73535d3caf77be1188 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Jul 2009 11:37:32 +0200 Subject: Removed benchmark --- test/main | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'test/main') 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} -} -- cgit v1.2.3