mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
- Improved portability of the sql-bench Perl scripts by replacing
the calls of external programs "uname" and "pwd" with Perl builtin functions "cwd()" and "POSIX::uname()"
This commit is contained in:
parent
e4c7496c14
commit
e92c823c8d
21 changed files with 46 additions and 56 deletions
|
|
@ -5,12 +5,13 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
use Cwd;
|
||||
use DBI;
|
||||
use Benchmark;
|
||||
|
||||
$opt_loop_count = 100000;
|
||||
|
||||
chomp($pwd = `pwd`); $pwd = "." if ($pwd eq '');
|
||||
$pwd = cwd(); $pwd = "." if ($pwd eq '');
|
||||
require "$pwd/bench-init.pl" || die "Can't read Configuration file: $!\n";
|
||||
|
||||
print "Innotest1: MySQL/InnoDB stress test in Perl\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue