Skip to content

Latest commit

 

History

History
236 lines (228 loc) · 7.51 KB

t_004.md

File metadata and controls

236 lines (228 loc) · 7.51 KB

@t_004 获取音效资源 .bnk(多进程)

测试获取 n 个 bnk(同步并发)

输出路径 test_7

  • 输出:F:\Develop\_Project\_OWO_GET_TEST\test_7\build
  • 日志:F:\Develop\_Project\_OWO_GET_TEST\test_7\log
mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_7\build" && mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_7\log"

测试命令

npm start bnk executer 9 task 3 cps 3 async false

测试1

  • 通过
build bnk with 124; executer 9; isAsync false [0ms]
child process 7992 init [16ms]
child process 10336 init [23ms]
child process 13096 init [33ms]
current task is 0 child process 7992 [39ms]
current task is 1 child process 10336 [46ms]
current task is 2 child process 13096 [50ms]
global current wem count: 105; wem to ogg success: 9 [3033ms]
global current wem count: 2229; wem to ogg success: 18 [3038ms]
global current wem count: 2322; wem to ogg success: 27 [3042ms]
process executer task count: 3 [3046ms]
------------------------------ [3049ms]
kill child process 7992 done=true [3057ms]
kill child process 10336 done=true [3060ms]
kill child process 13096 done=true [3064ms]
------------------------------ [3068ms]
global wem total: 2322 [3071ms]
global wem to ogg success: 27 [3075ms]
global crate: 1% [3081ms]
------------------------------ [3085ms]

测试2

  • 通过
build bnk with 124; executer 9; isAsync false [0ms]
child process 6732 init [16ms]
child process 9396 init [23ms]
child process 12376 init [33ms]
current task is 0 child process 6732 [38ms]
current task is 1 child process 9396 [46ms]
current task is 2 child process 12376 [52ms]
global current wem count: 105; wem to ogg success: 9 [2911ms]
global current wem count: 2229; wem to ogg success: 18 [2917ms]
global current wem count: 2322; wem to ogg success: 27 [2923ms]
process executer task count: 3 [2927ms]
------------------------------ [2931ms]
kill child process 6732 done=true [2936ms]
kill child process 9396 done=true [2940ms]
kill child process 12376 done=true [2944ms]
------------------------------ [2948ms]
global wem total: 2322 [2952ms]
global wem to ogg success: 27 [2955ms]
global crate: 1% [2960ms]
------------------------------ [2963ms]

测试结束

  • 测试次数:2
  • 多次测试输出是否一致:是
  • 通过

隐在 bug

  • null

测试获取 n 个 bnk(异步并发)

输出路径 test_8

  • 输出:F:\Develop\_Project\_OWO_GET_TEST\test_8\build
  • 日志:F:\Develop\_Project\_OWO_GET_TEST\test_8\log
mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_8\build" && mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_8\log"

测试命令

npm start bnk executer 9 task 3 cps 3 async true

测试 1

  • 通过
build bnk with 124; executer 9; isAsync true [0ms]
child process 12116 init [18ms]
child process 4348 init [29ms]
child process 9568 init [42ms]
current task is 0 child process 12116 [51ms]
current task is 1 child process 4348 [62ms]
current task is 2 child process 9568 [69ms]
global current wem count: 105; wem to ogg success: 9 [3160ms]
global current wem count: 2229; wem to ogg success: 18 [3168ms]
global current wem count: 2322; wem to ogg success: 27 [3177ms]
process executer task count: 3 [3186ms]
------------------------------ [3193ms]
kill child process 12116 done=true [3201ms]
kill child process 4348 done=true [3208ms]
kill child process 9568 done=true [3216ms]
------------------------------ [3226ms]
global wem total: 2322 [3230ms]
global wem to ogg success: 27 [3235ms]
global crate: 1% [3238ms]
------------------------------ [3244ms]

测试 2

  • 通过
build bnk with 124; executer 9; isAsync true [0ms]
child process 10876 init [16ms]
child process 1820 init [25ms]
child process 6840 init [36ms]
current task is 0 child process 10876 [42ms]
current task is 1 child process 1820 [50ms]
current task is 2 child process 6840 [54ms]
global current wem count: 105; wem to ogg success: 9 [3131ms]
global current wem count: 2229; wem to ogg success: 18 [3137ms]
global current wem count: 2322; wem to ogg success: 27 [3142ms]
process executer task count: 3 [3147ms]
------------------------------ [3150ms]
kill child process 10876 done=true [3154ms]
kill child process 1820 done=true [3158ms]
kill child process 6840 done=true [3164ms]
------------------------------ [3169ms]
global wem total: 2322 [3173ms]
global wem to ogg success: 27 [3177ms]
global crate: 1% [3181ms]
------------------------------ [3185ms]

测试结束

  • 测试次数:2
  • 多次测试输出是否一致:是
  • 通过

隐在 bug

  • null

测试获取所有 bnk(同步并发)

输出路径 test_9

  • 输出:F:\Develop\_Project\_OWO_GET_TEST\test_9\build
  • 日志:F:\Develop\_Project\_OWO_GET_TEST\test_9\log
mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_9\build" && mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_9\log"

测试命令

npm start bnk executer ori task ori cps 3 async false

测试 1

  • 实际输出 12217,success: 12217
  • 通过
------------------------------ [985993ms]
kill child process 6812 done=true [985997ms]
kill child process 2484 done=true [986000ms]
kill child process 5124 done=true [986007ms]
------------------------------ [986012ms]
global wem total: 14453 [986016ms]
global wem to ogg success: 12217 [986022ms]
global crate: 85% [986027ms]
------------------------------ [986032ms]

测试 2

  • 实际输出 12217,success: 12217
  • 通过
process executer task count: 124 [998682ms]
------------------------------ [998686ms]
kill child process 5664 done=true [998690ms]
kill child process 9652 done=true [998695ms]
kill child process 11412 done=true [998702ms]
------------------------------ [998706ms]
global wem total: 14453 [998710ms]
global wem to ogg success: 12217 [998714ms]
global crate: 85% [998720ms]
------------------------------ [998724ms]

测试结束

  • 测试次数:2
  • 多次测试输出是否一致:是
  • 通过

隐在 bug

  • null

测试获取所有 bnk(异步并发)

输出路径 test_10

  • 输出:F:\Develop\_Project\_OWO_GET_TEST\test_10\build
  • 日志:F:\Develop\_Project\_OWO_GET_TEST\test_10\log
mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_10\build" && mkdir "F:\Develop\_Project\_OWO_GET_TEST\test_10\log"

测试命令

npm start bnk executer ori task ori cps 3 async true

测试 1

  • 实际输出 12205,success: 11799
  • 问题:有些任务没有执行
process executer task count: 124 [702774ms]
------------------------------ [702778ms]
kill child process 6344 done=true [702784ms]
kill child process 12596 done=true [702790ms]
kill child process 6968 done=true [702796ms]
------------------------------ [702800ms]
global wem total: 13804 [702805ms]
global wem to ogg success: 11799 [702811ms]
global crate: 85% [702817ms]
------------------------------ [702821ms]

测试 2

  • 实际输出 12197,success: 11799
  • 问题:有些任务没有执行
------------------------------ [701990ms]
kill child process 12568 done=true [701999ms]
kill child process 2528 done=true [702008ms]
kill child process 2984 done=true [702014ms]
------------------------------ [702020ms]
global wem total: 13804 [702025ms]
global wem to ogg success: 11799 [702031ms]
global crate: 85% [702034ms]
------------------------------ [702040ms]

测试结束

  • 测试次数:2
  • 多次测试输出是否一致:否
  • 暂时通过。(推荐使用同步)
  • TODO 待修复

隐在 bug

  • 多次测试输出是否一致:否
  • 进程执行的速度太快,导致有些任务没有执行