asd013 发表于 2018-10-23 11:06
我无法重现这个问题。对于100个请求响应所花费的总时间对于TLS 1.2和TLS 1.1都是相似的。我曾使用FreeRTOS来测试和修改HTTPSBN SNIP。这里是用于测试的代码:
EasPosithItime1= HoothRotoSigGETTimeTIME();
(i=0;i,lt;100;i++)
我不确定West-BESL库是否有硬件相关的代码。
这是我在CYW4338平台上的测试:(也许你应该试试CYW4338)
我只测量由HtpPixCyclinCuffelType()调用的时间,如下所示:
EasPosithItime1= HoothRotoSigGETTimeTIME();
如果(结果= HTTPYclient连接(和;客户端,(const WieDeIpIpAddisSt**)和;= WICEDDY成功
{
WPRNTHYAPAPIOFIN((错误:连接到服务器失败:%UN),结果);
返回;
}
EasPosithTime2= HoothRoStGETGETTIME();
PrimTf(“DIFF=%rn”),(未签名)(EAPSESEDY TIME2-ELAPSSEDY TIME1);
对TLS-V1.1和TLS-V1.2进行两次测试:
V1.1.2:
www. HutpBi.Org为23.23.171.5
连接到www. HutpBi.Org
差异=2375
www. HutpBi.Org为50.17225.199
连接到www. HutpBi.Org
差异=2480
TLV1.1:
www. HutpBi.Org为54.225.64.197
连接到www. HutpBi.Org
差异=953
www. HutpBi.Org为54.243.65.67
连接到www. HutpBi.Org
差异=1018
以上来自于百度翻译
以下为原文
I'm not sure if wiced BESL library has hardware dependent code.
Here is my test on CYW43438 platform: (Maybe you should try on CYW43438)
I only measure the time spent by http_client_connect() call as below:
elapsed_time1=host_rtos_get_time();
if ( ( result = http_client_connect( &client, (const wiced_ip_address_t*)&ip_address, SERVER_PORT, HTTP_USE_TLS, CONNECT_TIMEOUT_MS ) ) != WICED_SUCCESS )
{
WPRINT_APP_INFO( ( "Error: failed to connect to server: %un", result) );
return;
}
elapsed_time2=host_rtos_get_time();
printf("DIFF= %urn", (unsigned) (elapsed_time2 - elapsed_time1));
I test twice for TLS-v1.1 and TLS-v1.2:
TLS v1.2:
www.httpbin.org is at 23.23.171.5
Connecting to www.httpbin.org
DIFF= 2375
www.httpbin.org is at 50.17.225.199
Connecting to www.httpbin.org
DIFF= 2480
TLS v1.1:
www.httpbin.org is at 54.225.64.197
Connecting to www.httpbin.org
DIFF= 953
www.httpbin.org is at 54.243.65.67
Connecting to www.httpbin.org
DIFF= 1018