From 73de5d70f39b974b3f822f761564355331468b3d Mon Sep 17 00:00:00 2001 From: Michael Larabel Date: Fri, 28 Apr 2023 11:41:59 -0500 Subject: [PATCH] pts/sqlite-2.2.0: Update against SQLite 3.41.2 upstream, adjust option value so it auto-populates up to the total number of CPU threads available. Closes: https://github.com/phoronix-test-suite/test-suites/pull/9 --- pts/sqlite-2.2.0/downloads.xml | 28 +++++++++++++++ pts/sqlite-2.2.0/install.sh | 33 ++++++++++++++++++ pts/sqlite-2.2.0/install_windows.sh | 25 ++++++++++++++ pts/sqlite-2.2.0/interim.sh | 2 ++ pts/sqlite-2.2.0/post.sh | 2 ++ pts/sqlite-2.2.0/pre.sh | 2 ++ pts/sqlite-2.2.0/results-definition.xml | 7 ++++ pts/sqlite-2.2.0/test-definition.xml | 46 +++++++++++++++++++++++++ 8 files changed, 145 insertions(+) create mode 100644 pts/sqlite-2.2.0/downloads.xml create mode 100644 pts/sqlite-2.2.0/install.sh create mode 100644 pts/sqlite-2.2.0/install_windows.sh create mode 100644 pts/sqlite-2.2.0/interim.sh create mode 100644 pts/sqlite-2.2.0/post.sh create mode 100644 pts/sqlite-2.2.0/pre.sh create mode 100644 pts/sqlite-2.2.0/results-definition.xml create mode 100644 pts/sqlite-2.2.0/test-definition.xml diff --git a/pts/sqlite-2.2.0/downloads.xml b/pts/sqlite-2.2.0/downloads.xml new file mode 100644 index 00000000..090a45da --- /dev/null +++ b/pts/sqlite-2.2.0/downloads.xml @@ -0,0 +1,28 @@ + + + + + + http://sqlite.org/2023/sqlite-autoconf-3410200.tar.gz + 862075fd1c38324878ef809eda39edfe + e98c100dd1da4e30fa460761dab7c0b91a50b785e167f8c57acc46514fae9499 + sqlite-autoconf-3410200.tar.gz + 3125545 + + + http://sqlite.org/2023/sqlite-tools-win32-x86-3410200.zip + 21cc89a2f1e4ec0dcb05a74386052e4e + 1d0720c3a4c4619a91eb97f52931e3485f92b53d89e76b335c69c4d8c644c006 + sqlite-tools-win32-x86-3410200.zip + 1999045 + Windows + + + http://www.phoronix-test-suite.com/benchmark-files/pts-sqlite-tests-1.tar.gz + 153e725642619e38766ddf8359f65cfe + 1067f047461e21fd56e2a6ae03043c687047d00192ffdbe5b52271cd39de442f + pts-sqlite-tests-1.tar.gz + 42835 + + + diff --git a/pts/sqlite-2.2.0/install.sh b/pts/sqlite-2.2.0/install.sh new file mode 100644 index 00000000..ff6912c2 --- /dev/null +++ b/pts/sqlite-2.2.0/install.sh @@ -0,0 +1,33 @@ +#!/bin/sh +tar -zxvf pts-sqlite-tests-1.tar.gz +tar -zxvf sqlite-autoconf-3410200.tar.gz +mkdir sqlite_/ +cd sqlite-autoconf-3410200/ +./configure --prefix=$HOME/sqlite_/ +make +echo $? > ~/install-exit-status +make install +cd .. +rm -rf sqlite-autoconf-3410200/ +echo "#!/bin/bash +thread_num=\$1 +if ! [[ \"\$thread_num\" =~ ^[0-9]+$ ]] + then + thread_num=1 +fi +cat sqlite-2500-insertions.txt > sqlite-insertions.txt +do_test() { + DB=benchmark-\$1.db + ./sqlite_/bin/sqlite3 \$DB \"CREATE TABLE pts1 ('I' SMALLINT NOT NULL, 'DT' TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, 'F1' VARCHAR(4) NOT NULL, 'F2' VARCHAR(16) NOT NULL);\" + cat sqlite-insertions.txt | ./sqlite_/bin/sqlite3 \$DB + cat sqlite-insertions.txt | ./sqlite_/bin/sqlite3 \$DB + cat sqlite-insertions.txt | ./sqlite_/bin/sqlite3 \$DB +} +pids=\"\" +for i in \$(seq 1 \$thread_num) +do + do_test \$i & + pids=\"\$pids \$!\" +done +wait \$pids" > sqlite-benchmark +chmod +x sqlite-benchmark diff --git a/pts/sqlite-2.2.0/install_windows.sh b/pts/sqlite-2.2.0/install_windows.sh new file mode 100644 index 00000000..a4c99c9d --- /dev/null +++ b/pts/sqlite-2.2.0/install_windows.sh @@ -0,0 +1,25 @@ +#!/bin/sh +tar -zxvf pts-sqlite-tests-1.tar.gz +unzip -o sqlite-tools-win32-x86-3410200.zip +echo "#!/bin/bash +thread_num=\$1 +if ! [[ \"\$thread_num\" =~ ^[0-9]+$ ]] + then + thread_num=1 +fi +cat sqlite-2500-insertions.txt > sqlite-insertions.txt +do_test() { + DB=benchmark-\$1.db + ./sqlite-tools-win32-x86-3410200/sqlite3.exe \$DB \"CREATE TABLE pts1 ('I' SMALLINT NOT NULL, 'DT' TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, 'F1' VARCHAR(4) NOT NULL, 'F2' VARCHAR(16) NOT NULL);\" + cat sqlite-insertions.txt | ./sqlite-tools-win32-x86-3410200/sqlite3.exe \$DB + cat sqlite-insertions.txt | ./sqlite-tools-win32-x86-3410200/sqlite3.exe \$DB + cat sqlite-insertions.txt | ./sqlite-tools-win32-x86-3410200/sqlite3.exe \$DB +} +pids=\"\" +for i in \$(seq 1 \$thread_num) +do + do_test \$i & + pids=\"\$pids \$!\" +done +wait \$pids" > sqlite-benchmark +chmod +x sqlite-benchmark diff --git a/pts/sqlite-2.2.0/interim.sh b/pts/sqlite-2.2.0/interim.sh new file mode 100644 index 00000000..df5e5d0d --- /dev/null +++ b/pts/sqlite-2.2.0/interim.sh @@ -0,0 +1,2 @@ +#!/bin/sh +rm -f benchmark*.db diff --git a/pts/sqlite-2.2.0/post.sh b/pts/sqlite-2.2.0/post.sh new file mode 100644 index 00000000..df5e5d0d --- /dev/null +++ b/pts/sqlite-2.2.0/post.sh @@ -0,0 +1,2 @@ +#!/bin/sh +rm -f benchmark*.db diff --git a/pts/sqlite-2.2.0/pre.sh b/pts/sqlite-2.2.0/pre.sh new file mode 100644 index 00000000..df5e5d0d --- /dev/null +++ b/pts/sqlite-2.2.0/pre.sh @@ -0,0 +1,2 @@ +#!/bin/sh +rm -f benchmark*.db diff --git a/pts/sqlite-2.2.0/results-definition.xml b/pts/sqlite-2.2.0/results-definition.xml new file mode 100644 index 00000000..6a768996 --- /dev/null +++ b/pts/sqlite-2.2.0/results-definition.xml @@ -0,0 +1,7 @@ + + + + + sys.time + + diff --git a/pts/sqlite-2.2.0/test-definition.xml b/pts/sqlite-2.2.0/test-definition.xml new file mode 100644 index 00000000..77d0c439 --- /dev/null +++ b/pts/sqlite-2.2.0/test-definition.xml @@ -0,0 +1,46 @@ + + + + + SQLite + 3.41.2 + This is a simple benchmark of SQLite. At present this test profile just measures the time to perform a pre-defined number of insertions on an indexed database with a variable number of concurrent repetitions -- up to the maximum number of CPU threads available. + Seconds + LIB + sqlite-benchmark + 3 + + + 2.2.0 + Linux, BSD, MacOSX, Solaris, Windows + Benchmark + Disk + Free + Verified + build-utilities + 40 + https://sqlite.org/ + https://github.com/sqlite/sqlite + Michael Larabel + + + + +