openbsd-ports/benchmarks/sysbench/patches/patch-scripts_sb_test_ps_sh
sthen 8455372320 import sysbench:
SysBench is a modular, cross-platform and multi-threaded benchmark tool
for evaluating OS parameters that are important for a system running a
database under intensive load.

The idea of this benchmark suite is to quickly get an impression about
system performance without setting up complex database benchmarks or
even without installing a database at all.

Current features allow to test the following system parameters:

    * file I/O performance
    * scheduler performance
    * memory allocation and transfer speed
    * POSIX threads implementation performance
    * database server performance (OLTP benchmark)

Primarily written for MySQL server benchmarking, SysBench will be
further extended to support multiple database backends, distributed
benchmarks and third-party plug-in modules.

from Jung (maintainer) with some tweaks.
thanks to landry@ for testing and feedback.

ok landry
2008-04-15 14:14:08 +00:00

39 lines
1.4 KiB
Plaintext

$OpenBSD: patch-scripts_sb_test_ps_sh,v 1.1.1.1 2008/04/15 14:14:08 sthen Exp $
--- scripts/sb_test_ps.sh.orig Tue Jan 31 11:15:49 2006
+++ scripts/sb_test_ps.sh Tue Apr 15 14:09:01 2008
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# File: sb_test_ps.sh
#
# Copyright (C) 2004 Alexey Kopytov & MySQL AB
@@ -25,23 +25,24 @@ run_test()
{
tname="$1"
sbargs="--num-threads=$NUM_THREADS --max-requests=0 --max-time=60 \
---test=oltp --oltp-table-size=100000 --mysql-table-type=myisam \
+--test=oltp --oltp-table-size=100000 --mysql-table-engine=myisam \
--oltp-point-selects=$point_selects \
--oltp-simple-ranges=$simple_ranges
--oltp-sum-ranges=$sum_ranges
--oltp-order-ranges=$order_ranges
--oltp-distinct-ranges=$distinct_ranges
--oltp-index-updates=$index_updates
---oltp-non-index-updates=$non_index_updates"
+--oltp-non-index-updates=$non_index_updates
+--db-driver=mysql"
echo -e "\n*** Running test for $tname (client-side PS) ***\n"
sysbench $sbargs prepare >/dev/null
- sb_run.sh -c "$tname (client-side PS)" $sbargs --db-ps-mode=disable run
+ $sbrun -c "$tname (client-side PS)" $sbargs --db-ps-mode=disable run
sysbench $sbargs cleanup >/dev/null
echo -e "\n*** Running test for $tname (server-side PS)... ***\n"
sysbench $sbargs prepare >/dev/null
- sb_run.sh -c "$tname (server-side PS)" $sbargs run
+ $sbrun -c "$tname (server-side PS)" $sbargs run
sysbench $sbargs cleanup >/dev/null
}