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```