| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| BUILD.gn | D | 06-May-2025 | 1.3 KiB | 50 | 41 | |
| ReadMe.md | D | 06-May-2025 | 1.4 KiB | 70 | 35 | |
| ReadMe_Zh.md | D | 06-May-2025 | 1.2 KiB | 39 | 35 | |
| main.cpp | D | 06-May-2025 | 7.4 KiB | 232 | 190 |
ReadMe.md
1# Ark multithreading command line # 2 3## Function Introduction ## 4 5Can start a specified number of threads, each thread starts the virtual machine and executes the test case simultaneously, used to test the garbage collection mechanism of shared memory. 6 7## Command Help ## 8 9ark_multi [number of threads] [execution file, internal record of abc that needs to be run, one per line] [parameter, same as ark_js_vm] 10 11### Example ### 12 13#### Execute the content of the input.txt file 14 15``` 16 17a.abc 18 19a.abc 20 21b.abc 22 23b.abc 24 25c.abc 26 27c.abc 28 29``` 30 31#### command 32 33ark_multi 3 input.txt --icu-data-path "third_party/icu/ohos_icu4j/data" 34 35 36 37## Execute test262 ## 38 39- #### Using standalone build 40 411. Local execution of full volume 262 42 43``` 44 45python3 ark.py x64.debug test262 46 47``` 48 492. Construct input file test262.txt 50 51Reference [test262 abc files](test262.txt) 52 533. Execute multi-threaded testing 54 55``` 56LD_LIBRARY_PATH=out/x64.debug/arkcompiler/ets_runtime/:out/x64.debug/thirdparty/bounds_checking_function/ out/x64.debug/arkcompiler/toolchain/ark_multi 6 arkcompiler/toolchain/tooling/client/ark_multi/test262.txt --icu-data-path "third_party/icu/ohos_icu4j/data" 1>/dev/null 57 58``` 59 60 61 62## Execute local ts ## 63 641. Write the local abc path into input.txt 65 662. Execution 67 68``` 69LD_LIBRARY_PATH=out/x64.debug/arkcompiler/ets_runtime/:out/x64.debug/thirdparty/bounds_checking_function/ out/x64.debug/arkcompiler/toolchain/ark_multi 6 input.txt--icu-data-path "third_party/icu/ohos_icu4j/data" 70```
ReadMe_Zh.md
1# 方舟多线程运行命令行 # 2## 功能介绍 ## 3可启动指定数量的线程,每个线程启动虚拟机同时执行用例,用于压测共享内存的垃圾回收机制。 4 5## 命令帮助 ## 6ark_multi [线程数] [执行文件,内部记录需要运行的abc,每行一个] [参数,同ark_js_vm] 7 8### 举例 ### 9执行文件 input.txt 内容 10``` 11a.abc 12a.abc 13b.abc 14b.abc 15c.abc 16c.abc 17``` 18命令 19ark_multi 3 input.txt --icu-data-path "third_party/icu/ohos_icu4j/data" 20 21## 执行test262 ## 22- #### 采用独立编译 231. 本地执行全量262 24``` 25python3 ark.py x64.debug test262 26``` 272. 构造输入文件 test262.txt 28参考 [test262参考文件](test262.txt) 293. 执行多线程测试 30``` 31LD_LIBRARY_PATH=out/x64.debug/arkcompiler/ets_runtime/:out/x64.debug/thirdparty/bounds_checking_function/ out/x64.debug/arkcompiler/toolchain/ark_multi 6 arkcompiler/toolchain/tooling/client/ark_multi/test262.txt --icu-data-path "third_party/icu/ohos_icu4j/data" 1>/dev/null 32``` 33 34## 执行本地ts ## 351. 将本地abc路径写入 input.txt 362. 执行 37``` 38LD_LIBRARY_PATH=out/x64.debug/arkcompiler/ets_runtime/:out/x64.debug/thirdparty/bounds_checking_function/ out/x64.debug/arkcompiler/toolchain/ark_multi 6 input.txt--icu-data-path "third_party/icu/ohos_icu4j/data" 39```