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