diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-08 11:37:32 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-08 11:37:32 +0200 |
commit | baaf701e68a1b9f184058f73535d3caf77be1188 (patch) | |
tree | 88f2319ea4d5acfd1e57f817fedec943a4f3ea18 | |
parent | de9ac16258499668a958e9f02f217ff8574ccba8 (diff) |
Removed benchmark
-rwxr-xr-x | test/main | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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} -} |