|
7 months ago | |
---|---|---|
.. | ||
api | 7 months ago | |
src | 7 months ago | |
.dockerignore | 7 months ago | |
.gitignore | 7 months ago | |
README.md | 7 months ago | |
benchmark_config.json | 7 months ago | |
config.toml | 7 months ago | |
pom.xml | 7 months ago | |
tio-server-native.dockerfile | 7 months ago | |
tio-server.dockerfile | 7 months ago |
This is the tio-server portion of a benchmarking test suite comparing a variety of web development platforms.
These implementations use the tio-server's controller.
3.7.3.v20231218-RELEASE (https://gitee.com/litongjava/t-io)
All implementations use the same URLs.
http://localhost:8080/plaintext
http://localhost:8080/json
http://localhost:8080/db
http://localhost:8080/queries?queries=5
http://localhost:8080/cacheQuery?queries=10000
http://localhost:8080/fortunes
http://localhost:8080/updates?queries=5
## Hot to run ### install mysql 8
1.please instal mysql 8.0.32,example cmd
docker run --restart=always -d --name mysql_8 --hostname mysql \
-p 3306:3306 \
-e 'MYSQL_ROOT_PASSWORD=robot_123456#' -e 'MYSQL_ROOT_HOST=%' -e 'MYSQL_DATABASE=hello_world' \
mysql/mysql-server:8.0.32 \
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --lower_case_table_names=1
2.create database schema hello_world
3.create tablle,example
4.import data
### docker
docker build -t tio-server-benchmark -f tio-server.dockerfile .
The run is to specify the mysql database
docker run --rm -p 8080:8080 \
-e JDBC_URL="jdbc:mysql://192.168.3.9/hello_world" \
-e JDBC_USER="root" \
-e JDBC_PSWD="robot_123456#" \
tio-server-benchmark
-windows
D:\java\jdk1.8.0_121\bin\java -jar target\tio-server-benchmark-1.0.jar --JDBC_URL=jdbc:mysql://192.168.3.9/hello_world?useSSL=false --JDBC_USER=root --JDBC_PSWD=robot_123456#
or
set JDBC_URL=jdbc:mysql://192.168.3.9/hello_world
set jdbc.user=root
set JDBC_PSWD=robot_123456#
D:\java\jdk1.8.0_121\bin\java -jar target\tio-server-benchmark-1.0.jar