summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-03 14:38:29 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-03 14:38:36 +0200
commit9a291b43f7eee05634309d1ce4962a4eae2c669c (patch)
treefa757b451fee29ca02edf2c935c4e1c4e08841aa /test
parentffc8c367039a34b0456c360d8c5438fbebc39255 (diff)
benchmark: Don't use envstore to save the test values
Saving them that way takes way too long, write them directly into the store file instead.
Diffstat (limited to 'test')
-rwxr-xr-xtest/main9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/main b/test/main
index d6a3f97..6aec01b 100755
--- a/test/main
+++ b/test/main
@@ -160,10 +160,11 @@ if ((benchmark)) {
echo "## some benchmarks now..."
TIMEFMT='%*E real, %*U user, %*S system - %P%% CPU - %J'
- echo "# adding 5000 vars (this could take a _long_ time)"
- for i in {0..5000}; {
- (( i % 500 )) || echo "# $((5000-i)) to go"
- $envstore save $i $i$i$i
+ 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