From f71583705ec66a62b32166bd03f1b7e6cf012b0d Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Thu, 21 Aug 2025 08:07:59 +0000 Subject: [PATCH] Update README.md --- README.en.md | 42 ++++++++++++++++++++++++++++++++++++++++++ README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 README.en.md create mode 100644 README.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..8288da2 --- /dev/null +++ b/README.en.md @@ -0,0 +1,42 @@ + + +# Magic Script Benchmark + +This is a benchmarking project designed to compare the performance of different script engines. + +## Project Overview + +The project conducts performance benchmarking using the JMH (Java Microbenchmark Harness) framework. Currently, it supports benchmarking the following script engines: + +- Groovy +- MagicScript +- Nashorn + +## Project Structure + +- `src/main/java/org/ssssssss/script/` - Java source code directory containing the benchmark classes +- `src/main/resources/` - Resource file directory containing the scripts to be tested + +## Usage Instructions + +1. Ensure that a Java development environment is installed (JDK 8 or later) +2. Clone the project to your local machine +3. Run the following commands to execute the benchmark: + +```bash +mvn clean install +mvn exec:exec +``` + +## Test Configuration + +- Fork mode: 2 forks +- Warmup iterations: 5 iterations, 5 seconds each +- Measurement iterations: 5 iterations, 10 seconds each +- Test mode: Throughput mode +- Output time unit: Seconds +- Scope: Benchmark scope + +## License + +This project uses the MIT License. Please refer to the [LICENSE](LICENSE) file for details. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..54c7d11 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# Magic Script Benchmark + +这是一个用于比较不同脚本引擎性能的基准测试项目。 + +## 项目概述 + +该项目通过JMH(Java Microbenchmark Harness)框架对不同的脚本引擎进行性能基准测试。目前支持以下脚本引擎的测试: + +- Groovy +- MagicScript +- Nashorn + +## 项目结构 + +- `src/main/java/org/ssssssss/script/` - Java源代码目录,包含基准测试类 +- `src/main/resources/` - 资源文件目录,包含待测试的脚本文件 + +## 使用说明 + +1. 确保已安装Java开发环境(JDK 8或更高版本) +2. 克隆项目到本地 +3. 执行以下命令进行基准测试: + +```bash +mvn clean install +mvn exec:exec +``` + +## 测试配置 + +- Fork模式:2次 +- 预热迭代:5次,每次5秒 +- 测量迭代:5次,每次10秒 +- 测试模式:吞吐量模式 +- 输出时间单位:秒 +- 测试状态:基准测试作用域 + +## 许可证 + +该项目使用MIT许可证,请参阅[LICENSE](LICENSE)文件获取详细信息。 \ No newline at end of file -- Gitee