Ardupilot Rpanion 4GLTE 网络性能测试 - 国内中转

2024-05-14 23:44

本文主要是介绍Ardupilot Rpanion 4GLTE 网络性能测试 - 国内中转,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Ardupilot Rpanion 4GLTE 网络性能测试 - 国内中转

  • 1. 源由
  • 2. 视频效果
    • 2.1 整体刷新率不高
    • 2.2 网络延迟可接受
    • 2.3 带宽增加丢包明显
    • 2.4 实测效果流畅
  • 3. 总结

1. 源由

上一次,由于ZeroTier使用了国外服务器,延迟~ 569 ms,花屏、卡顿。

本着不折腾到底,誓不罢休的精神,本次我们将ZeroTier切换到了国内中转服务器。

在这里插入图片描述

2. 视频效果

最终视频效果是王道!来我们看下效果。

Ardupilot Rpanion 4GLTE-4GLTE Domestic Routing Copter

2.1 整体刷新率不高

一般都能到59FPS,但是显示器今天不知道怎么只有30FPS,有的时候都不到。
刷新率越差,误差就越大。

2.2 网络延迟可接受

ping延迟不高,大约在[64ms, 306ms],平均117ms。

ping -t 192.168.235.73Pinging 192.168.235.73 with 32 bytes of data:
Reply from 192.168.235.73: bytes=32 time=103ms TTL=64
Reply from 192.168.235.73: bytes=32 time=102ms TTL=64
Reply from 192.168.235.73: bytes=32 time=109ms TTL=64
Reply from 192.168.235.73: bytes=32 time=128ms TTL=64
Reply from 192.168.235.73: bytes=32 time=127ms TTL=64
Reply from 192.168.235.73: bytes=32 time=154ms TTL=64
Reply from 192.168.235.73: bytes=32 time=113ms TTL=64
Reply from 192.168.235.73: bytes=32 time=94ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=131ms TTL=64
Reply from 192.168.235.73: bytes=32 time=120ms TTL=64
Reply from 192.168.235.73: bytes=32 time=121ms TTL=64
Reply from 192.168.235.73: bytes=32 time=101ms TTL=64
Reply from 192.168.235.73: bytes=32 time=115ms TTL=64
Reply from 192.168.235.73: bytes=32 time=129ms TTL=64
Reply from 192.168.235.73: bytes=32 time=112ms TTL=64
Reply from 192.168.235.73: bytes=32 time=192ms TTL=64
Reply from 192.168.235.73: bytes=32 time=101ms TTL=64
Reply from 192.168.235.73: bytes=32 time=105ms TTL=64
Reply from 192.168.235.73: bytes=32 time=99ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=97ms TTL=64
Reply from 192.168.235.73: bytes=32 time=91ms TTL=64
Reply from 192.168.235.73: bytes=32 time=115ms TTL=64
Reply from 192.168.235.73: bytes=32 time=102ms TTL=64
Reply from 192.168.235.73: bytes=32 time=169ms TTL=64
Reply from 192.168.235.73: bytes=32 time=113ms TTL=64
Reply from 192.168.235.73: bytes=32 time=119ms TTL=64
Reply from 192.168.235.73: bytes=32 time=83ms TTL=64
Reply from 192.168.235.73: bytes=32 time=108ms TTL=64
Reply from 192.168.235.73: bytes=32 time=147ms TTL=64
Reply from 192.168.235.73: bytes=32 time=132ms TTL=64
Reply from 192.168.235.73: bytes=32 time=111ms TTL=64
Reply from 192.168.235.73: bytes=32 time=156ms TTL=64
Reply from 192.168.235.73: bytes=32 time=113ms TTL=64
Reply from 192.168.235.73: bytes=32 time=100ms TTL=64
Reply from 192.168.235.73: bytes=32 time=114ms TTL=64
Reply from 192.168.235.73: bytes=32 time=127ms TTL=64
Reply from 192.168.235.73: bytes=32 time=99ms TTL=64
Reply from 192.168.235.73: bytes=32 time=85ms TTL=64
Reply from 192.168.235.73: bytes=32 time=88ms TTL=64
Reply from 192.168.235.73: bytes=32 time=113ms TTL=64
Reply from 192.168.235.73: bytes=32 time=111ms TTL=64
Reply from 192.168.235.73: bytes=32 time=106ms TTL=64
Reply from 192.168.235.73: bytes=32 time=116ms TTL=64
Reply from 192.168.235.73: bytes=32 time=117ms TTL=64
Reply from 192.168.235.73: bytes=32 time=104ms TTL=64
Reply from 192.168.235.73: bytes=32 time=105ms TTL=64
Reply from 192.168.235.73: bytes=32 time=99ms TTL=64
Reply from 192.168.235.73: bytes=32 time=101ms TTL=64
Reply from 192.168.235.73: bytes=32 time=111ms TTL=64
Reply from 192.168.235.73: bytes=32 time=86ms TTL=64
Reply from 192.168.235.73: bytes=32 time=144ms TTL=64
Reply from 192.168.235.73: bytes=32 time=81ms TTL=64
Reply from 192.168.235.73: bytes=32 time=79ms TTL=64
Reply from 192.168.235.73: bytes=32 time=94ms TTL=64
Reply from 192.168.235.73: bytes=32 time=132ms TTL=64
Reply from 192.168.235.73: bytes=32 time=92ms TTL=64
Reply from 192.168.235.73: bytes=32 time=96ms TTL=64
Reply from 192.168.235.73: bytes=32 time=121ms TTL=64
Reply from 192.168.235.73: bytes=32 time=133ms TTL=64
Reply from 192.168.235.73: bytes=32 time=127ms TTL=64
Reply from 192.168.235.73: bytes=32 time=97ms TTL=64
Reply from 192.168.235.73: bytes=32 time=127ms TTL=64
Reply from 192.168.235.73: bytes=32 time=135ms TTL=64
Reply from 192.168.235.73: bytes=32 time=96ms TTL=64
Reply from 192.168.235.73: bytes=32 time=120ms TTL=64
Reply from 192.168.235.73: bytes=32 time=101ms TTL=64
Reply from 192.168.235.73: bytes=32 time=135ms TTL=64
Reply from 192.168.235.73: bytes=32 time=144ms TTL=64
Reply from 192.168.235.73: bytes=32 time=107ms TTL=64
Reply from 192.168.235.73: bytes=32 time=112ms TTL=64
Reply from 192.168.235.73: bytes=32 time=139ms TTL=64
Reply from 192.168.235.73: bytes=32 time=81ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=116ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=162ms TTL=64
Reply from 192.168.235.73: bytes=32 time=119ms TTL=64
Reply from 192.168.235.73: bytes=32 time=120ms TTL=64
Reply from 192.168.235.73: bytes=32 time=306ms TTL=64
Reply from 192.168.235.73: bytes=32 time=143ms TTL=64
Reply from 192.168.235.73: bytes=32 time=80ms TTL=64
Reply from 192.168.235.73: bytes=32 time=94ms TTL=64
Reply from 192.168.235.73: bytes=32 time=91ms TTL=64
Reply from 192.168.235.73: bytes=32 time=156ms TTL=64
Reply from 192.168.235.73: bytes=32 time=114ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=129ms TTL=64
Reply from 192.168.235.73: bytes=32 time=184ms TTL=64
Reply from 192.168.235.73: bytes=32 time=110ms TTL=64
Reply from 192.168.235.73: bytes=32 time=135ms TTL=64
Reply from 192.168.235.73: bytes=32 time=144ms TTL=64
Reply from 192.168.235.73: bytes=32 time=141ms TTL=64
Reply from 192.168.235.73: bytes=32 time=79ms TTL=64
Reply from 192.168.235.73: bytes=32 time=78ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=128ms TTL=64
Reply from 192.168.235.73: bytes=32 time=206ms TTL=64
Reply from 192.168.235.73: bytes=32 time=129ms TTL=64
Reply from 192.168.235.73: bytes=32 time=126ms TTL=64
Reply from 192.168.235.73: bytes=32 time=154ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=94ms TTL=64
Reply from 192.168.235.73: bytes=32 time=125ms TTL=64
Reply from 192.168.235.73: bytes=32 time=90ms TTL=64
Reply from 192.168.235.73: bytes=32 time=129ms TTL=64
Reply from 192.168.235.73: bytes=32 time=111ms TTL=64
Reply from 192.168.235.73: bytes=32 time=113ms TTL=64
Reply from 192.168.235.73: bytes=32 time=106ms TTL=64
Reply from 192.168.235.73: bytes=32 time=94ms TTL=64
Reply from 192.168.235.73: bytes=32 time=92ms TTL=64
Reply from 192.168.235.73: bytes=32 time=96ms TTL=64
Reply from 192.168.235.73: bytes=32 time=114ms TTL=64
Reply from 192.168.235.73: bytes=32 time=122ms TTL=64
Reply from 192.168.235.73: bytes=32 time=93ms TTL=64
Reply from 192.168.235.73: bytes=32 time=165ms TTL=64
Reply from 192.168.235.73: bytes=32 time=135ms TTL=64
Reply from 192.168.235.73: bytes=32 time=185ms TTL=64
Reply from 192.168.235.73: bytes=32 time=124ms TTL=64
Reply from 192.168.235.73: bytes=32 time=64ms TTL=64
Reply from 192.168.235.73: bytes=32 time=89ms TTL=64
Reply from 192.168.235.73: bytes=32 time=84ms TTL=64
Reply from 192.168.235.73: bytes=32 time=90ms TTL=64
Reply from 192.168.235.73: bytes=32 time=112ms TTL=64
Reply from 192.168.235.73: bytes=32 time=92ms TTL=64
Reply from 192.168.235.73: bytes=32 time=90ms TTL=64
Reply from 192.168.235.73: bytes=32 time=78ms TTL=64
Reply from 192.168.235.73: bytes=32 time=129ms TTL=64Ping statistics for 192.168.235.73:Packets: Sent = 129, Received = 129, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:Minimum = 64ms, Maximum = 306ms, Average = 117ms
Control-C

2.3 带宽增加丢包明显

iperf情况很诡异:相较于《Ardupilot Rpanion iperf网络性能测试》情况更差,但是实际效果不错。

在这里插入图片描述

$ iperf -b 300pps -u -e -i 1 -l 1400  -c 192.168.235.63
------------------------------------------------------------
Client connecting to 192.168.235.63, UDP port 5001 with pid 2627 (1 flows)
Write buffer size: 1.37 KByte
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.235.73%ztjjfduqpe port 47594 connected with 192.168.235.63 port 5001
[ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
[  3] 0.0000-1.0000 sec   410 KBytes  3.36 Mbits/sec  301/0      302 pps
[  3] 1.0000-2.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 2.0000-3.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 3.0000-4.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 4.0000-5.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 5.0000-6.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 6.0000-7.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 7.0000-8.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 8.0000-9.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 9.0000-10.0000 sec   410 KBytes  3.36 Mbits/sec  300/0      300 pps
[  3] 0.0000-10.0069 sec  4.01 MBytes  3.36 Mbits/sec  3005/0      300 pps
[  3] Sent 3005 datagrams
[  3] Server Report:
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3] 0.0000-10.0125 sec  4.01 MBytes  3.36 Mbits/sec   5.955 ms    0/ 3004 (0%)$ iperf -b 350pps -u -e -i 1 -l 1400  -c 192.168.235.63
------------------------------------------------------------
Client connecting to 192.168.235.63, UDP port 5001 with pid 2690 (1 flows)
Write buffer size: 1.37 KByte
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.235.73%ztjjfduqpe port 43876 connected with 192.168.235.63 port 5001
[ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
[  3] 0.0000-1.0000 sec   479 KBytes  3.92 Mbits/sec  351/0      352 pps
[  3] 1.0000-2.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 2.0000-3.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 3.0000-4.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 4.0000-5.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 5.0000-6.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 6.0000-7.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 7.0000-8.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 8.0000-9.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 9.0000-10.0000 sec   479 KBytes  3.92 Mbits/sec  350/0      350 pps
[  3] 0.0000-10.0059 sec  4.68 MBytes  3.92 Mbits/sec  3505/0      350 pps
[  3] Sent 3505 datagrams
[  3] Server Report:
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3] 0.0000-10.0302 sec  4.68 MBytes  3.91 Mbits/sec   5.143 ms    0/ 3504 (0%)$ iperf -b 400pps -u -e -i 1 -l 1400  -c 192.168.235.63
------------------------------------------------------------
Client connecting to 192.168.235.63, UDP port 5001 with pid 2697 (1 flows)
Write buffer size: 1.37 KByte
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.235.73%ztjjfduqpe port 33690 connected with 192.168.235.63 port 5001
[ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
[  3] 0.0000-1.0000 sec   547 KBytes  4.48 Mbits/sec  401/0      402 pps
[  3] 1.0000-2.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 2.0000-3.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 3.0000-4.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 4.0000-5.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 5.0000-6.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 6.0000-7.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 7.0000-8.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 8.0000-9.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 9.0000-10.0000 sec   547 KBytes  4.48 Mbits/sec  400/0      400 pps
[  3] 0.0000-10.0028 sec  5.34 MBytes  4.48 Mbits/sec  4004/0      400 pps
[  3] Sent 4004 datagrams
[  3] Server Report:
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3] 0.0000-10.0392 sec  5.34 MBytes  4.46 Mbits/sec   4.412 ms    0/ 4003 (0%)$ iperf -b 500pps -u -e -i 1 -l 1400  -c 192.168.235.63
------------------------------------------------------------
Client connecting to 192.168.235.63, UDP port 5001 with pid 2709 (1 flows)
Write buffer size: 1.37 KByte
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.235.73%ztjjfduqpe port 44078 connected with 192.168.235.63 port 5001
[ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
[  3] 0.0000-1.0000 sec   684 KBytes  5.60 Mbits/sec  501/0      502 pps
[  3] 1.0000-2.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 2.0000-3.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 3.0000-4.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 4.0000-5.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 5.0000-6.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 6.0000-7.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 7.0000-8.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 8.0000-9.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 9.0000-10.0000 sec   684 KBytes  5.60 Mbits/sec  500/0      500 pps
[  3] 0.0000-10.0042 sec  6.68 MBytes  5.60 Mbits/sec  5005/0      500 pps
[  3] Sent 5005 datagrams
[  3] Server Report:
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3] 0.0000-10.1477 sec  5.67 MBytes  4.69 Mbits/sec  11.400 ms  756/ 5005 (15%)$ iperf -b 550pps -u -e -i 1 -l 1400  -c 192.168.235.63
------------------------------------------------------------
Client connecting to 192.168.235.63, UDP port 5001 with pid 2716 (1 flows)
Write buffer size: 1.37 KByte
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.235.73%ztjjfduqpe port 49192 connected with 192.168.235.63 port 5001
[ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
[  3] 0.0000-1.0000 sec   752 KBytes  6.16 Mbits/sec  551/0      552 pps
[  3] 1.0000-2.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 2.0000-3.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 3.0000-4.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 4.0000-5.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 5.0000-6.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 6.0000-7.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 7.0000-8.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 8.0000-9.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 9.0000-10.0000 sec   752 KBytes  6.16 Mbits/sec  550/0      550 pps
[  3] 0.0000-10.0040 sec  7.35 MBytes  6.16 Mbits/sec  5505/0      550 pps
[  3] Sent 5505 datagrams
[  3] Server Report:
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3] 0.0000-9.9913 sec  5.62 MBytes  4.72 Mbits/sec   3.449 ms 1293/ 5504 (23%)$ iperf -b 600pps -u -e -i 1 -l 1400  -c 192.168.235.63
------------------------------------------------------------
Client connecting to 192.168.235.63, UDP port 5001 with pid 2724 (1 flows)
Write buffer size: 1.37 KByte
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.235.73%ztjjfduqpe port 49983 connected with 192.168.235.63 port 5001
[ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
[  3] 0.0000-1.0000 sec   820 KBytes  6.72 Mbits/sec  601/0      602 pps
[  3] 1.0000-2.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 2.0000-3.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 3.0000-4.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 4.0000-5.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 5.0000-6.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 6.0000-7.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 7.0000-8.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 8.0000-9.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 9.0000-10.0000 sec   820 KBytes  6.72 Mbits/sec  600/0      600 pps
[  3] 0.0000-10.0035 sec  8.01 MBytes  6.72 Mbits/sec  6005/0      600 pps
[  3] Sent 6005 datagrams
[  3] Server Report:
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3] 0.0000-9.9823 sec  5.55 MBytes  4.66 Mbits/sec   3.217 ms 1847/ 6004 (31%)

2.4 实测效果流畅

实测~ 251 ms 时延; 平均延时117/2 = 58.5 ms, 251 - 58.5 = 192.5 ms左右

在这里插入图片描述

3. 总结

综合上面的情况,整体分析:

  1. 上述网络配置情况,视频基本流畅,无雪花,卡顿,性能基本OK,可进行外场测试
  2. 计算机刷屏FPS未能稳定维持在59FPS,待查测试环境
  3. 部分截图发现,延迟甚至有1s之久,可能与刷屏或者最差网络环境有关
  4. 实测时需要关注不稳定的4GLTE网络,以及最差情况是否出现卡顿或者延迟问题

好了,小伙伴们,等我外场测试的好消息! :)

这篇关于Ardupilot Rpanion 4GLTE 网络性能测试 - 国内中转的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/990195

相关文章

Linux系统配置NAT网络模式的详细步骤(附图文)

《Linux系统配置NAT网络模式的详细步骤(附图文)》本文详细指导如何在VMware环境下配置NAT网络模式,包括设置主机和虚拟机的IP地址、网关,以及针对Linux和Windows系统的具体步骤,... 目录一、配置NAT网络模式二、设置虚拟机交换机网关2.1 打开虚拟机2.2 管理员授权2.3 设置子

揭秘Python Socket网络编程的7种硬核用法

《揭秘PythonSocket网络编程的7种硬核用法》Socket不仅能做聊天室,还能干一大堆硬核操作,这篇文章就带大家看看Python网络编程的7种超实用玩法,感兴趣的小伙伴可以跟随小编一起... 目录1.端口扫描器:探测开放端口2.简易 HTTP 服务器:10 秒搭个网页3.局域网游戏:多人联机对战4.

Python如何使用__slots__实现节省内存和性能优化

《Python如何使用__slots__实现节省内存和性能优化》你有想过,一个小小的__slots__能让你的Python类内存消耗直接减半吗,没错,今天咱们要聊的就是这个让人眼前一亮的技巧,感兴趣的... 目录背景:内存吃得满满的类__slots__:你的内存管理小助手举个大概的例子:看看效果如何?1.

SpringBoot使用OkHttp完成高效网络请求详解

《SpringBoot使用OkHttp完成高效网络请求详解》OkHttp是一个高效的HTTP客户端,支持同步和异步请求,且具备自动处理cookie、缓存和连接池等高级功能,下面我们来看看SpringB... 目录一、OkHttp 简介二、在 Spring Boot 中集成 OkHttp三、封装 OkHttp

Linux系统之主机网络配置方式

《Linux系统之主机网络配置方式》:本文主要介绍Linux系统之主机网络配置方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、查看主机的网络参数1、查看主机名2、查看IP地址3、查看网关4、查看DNS二、配置网卡1、修改网卡配置文件2、nmcli工具【通用

Redis中高并发读写性能的深度解析与优化

《Redis中高并发读写性能的深度解析与优化》Redis作为一款高性能的内存数据库,广泛应用于缓存、消息队列、实时统计等场景,本文将深入探讨Redis的读写并发能力,感兴趣的小伙伴可以了解下... 目录引言一、Redis 并发能力概述1.1 Redis 的读写性能1.2 影响 Redis 并发能力的因素二、

使用Python高效获取网络数据的操作指南

《使用Python高效获取网络数据的操作指南》网络爬虫是一种自动化程序,用于访问和提取网站上的数据,Python是进行网络爬虫开发的理想语言,拥有丰富的库和工具,使得编写和维护爬虫变得简单高效,本文将... 目录网络爬虫的基本概念常用库介绍安装库Requests和BeautifulSoup爬虫开发发送请求解

使用国内镜像源优化pip install下载的方法步骤

《使用国内镜像源优化pipinstall下载的方法步骤》在Python开发中,pip是一个不可或缺的工具,用于安装和管理Python包,然而,由于默认的PyPI服务器位于国外,国内用户在安装依赖时可... 目录引言1. 为什么需要国内镜像源?2. 常用的国内镜像源3. 临时使用国内镜像源4. 永久配置国内镜

Golang中拼接字符串的6种方式性能对比

《Golang中拼接字符串的6种方式性能对比》golang的string类型是不可修改的,对于拼接字符串来说,本质上还是创建一个新的对象将数据放进去,主要有6种拼接方式,下面小编就来为大家详细讲讲吧... 目录拼接方式介绍性能对比测试代码测试结果源码分析golang的string类型是不可修改的,对于拼接字

国内环境搭建私有知识问答库踩坑记录(ollama+deepseek+ragflow)

《国内环境搭建私有知识问答库踩坑记录(ollama+deepseek+ragflow)》本文给大家利用deepseek模型搭建私有知识问答库的详细步骤和遇到的问题及解决办法,感兴趣的朋友一起看看吧... 目录1. 第1步大家在安装完ollama后,需要到系统环境变量中添加两个变量2. 第3步 “在cmd中