blob: 742e08b93b63c4e64c0b0cc2420d13e9081f963d [file] [log] [blame]
#!/bin/bash
#
# Runs performance tests for seqlock.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Copyright (C) IBM Corporation, 2010
#
# Authors: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
for ncpu in 1 2 3 4 6 8
do
echo ./seqlocktorture $ncpu 0 2
./seqlocktorture $ncpu 0 2
sleep 0.1
done
for ncpu in 1 2 3 4 6 8
do
echo ./seqlocktorture $ncpu 1 2
./seqlocktorture $ncpu 1 2
sleep 0.1
done
for nelems in 1 2 3 4 6 8 11 16 22 32 44 64 88 128 176 256
do
echo ./seqlocktorture 8 0 $nelems
./seqlocktorture 8 0 $nelems
sleep 0.1
done