<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 驗證服務啟動成功如果開啟了Http支持可以直接訪問 ``` http://localhost:8081 ``` 如果出現以下界面就代表服務啟動成功了。 ![](https://box.kancloud.cn/04189f55787af8d13213f51ffee95aba_724x226.png) 另外你也可以訪問控制器方法 ``` http://localhost:8081/TestController/test ``` 如果是Tcp連接你將需要創建一個socket連接來測試,我們提供了一個測試文件start\_swoole\_client.php。 ```php $worker_num = 100; $total_num = 100000; $GLOBALS['package_length_type'] = 'N'; $GLOBALS['package_length_type_len'] = 4; $GLOBALS['package_length_offset'] = 0; $ips = ['127.0.0.1', '192.168.21.10']; $GLOBALS['total_num'] = $total_num; $GLOBALS['worker_num'] = $worker_num; $GLOBALS['count'] = 0; $GLOBALS['count_page'] = 0; $GLOBALS['test_count'] = 0; ``` 通過修改上面的配置,和你的服務器配置保持一致。其中ips是服務器列表,如果你只是測試單機那么只需要填寫\['127.0.0.1'\]即可。 ```php function connect($cli) { $cli->send(encode(json_pack('TestController', 'bind_uid', $cli->i))); swoole_timer_after(1000, function () use ($cli) { $GLOBALS['start_time'] = getMillisecond(); for ($i = 0; $i < $cli->total_num; $i++) { $cli->send(encode(json_pack('TestController', 'efficiency_test', $GLOBALS['test_count']))); $GLOBALS['test_count']++; } }); } ``` 這里的efficiency\_test為測試集群性能,如果單機可以改為efficiency\_test2。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看