3
# Licensed to the Apache Software Foundation (ASF) under one
4
# or more contributor license agreements. See the NOTICE file
5
# distributed with this work for additional information
6
# regarding copyright ownership. The ASF licenses this file
7
# to you under the Apache License, Version 2.0 (the
8
# "License"); you may not use this file except in compliance
9
# with the License. You may obtain a copy of the License at
11
# http://www.apache.org/licenses/LICENSE-2.0
13
# Unless required by applicable law or agreed to in writing, software
14
# distributed under the License is distributed on an "AS IS" BASIS,
15
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
# See the License for the specific language governing permissions and
17
# limitations under the License.
19
# function usage: GetResult metric directory
20
# result return in $value
23
# combined result is in 3rd to last comma-separated column
24
value=`grep "$1" $2/summary.csv | awk -F, '{print $(NF-2);}'`
27
summary=Results.all.$$
30
for hitrate in 0 20 40 60 80 100 ; do
31
out=output/hitrate.$hitrate
32
inkbench hitrate=$hitrate output=$out
33
GetResult 'Cumulative rate' $out
34
echo "Hitrate: $hitrate Op/sec: $value" >> $summary
36
echo "Results so far:"
43
for users in 100 200 500 1000 2000 5000 10000 ; do
44
out=output/users.$users
45
inkbench users=$users output=$out
46
GetResult 'Cumulative rate' $out
47
echo "Users: $users Op/sec: $value" >> $summary
49
echo "Results so far:"
56
for hotset in 100 1000 10000 50000 100000 ; do
57
out=output/hotset.$hotset
58
inkbench hotset=$hotset output=$out
59
GetResult 'Cumulative rate' $out
60
echo "Hotset: $hotset Op/sec: $value" >> $summary
62
echo "Results so far:"