mirror of
https://github.com/openwrt/packages.git
synced 2025-07-20 21:49:11 +00:00
Allow measuring ping latency and CPU details at idle as a baseline before measuring under data transfer loading. This allows better determination of Latency Under Load, a critical bufferbloat parameter. The CPU details can also be used to verify idle conditions or examine CPU frequency against ping variations and jitter. Change the default test duration to 30 seconds, which is adequate for SQM tuning while reducing bandwidth consumption for upstream netperf servers. Change the default ping host from gstatic.com to one.one.one.one, which is widely available and generally shows lower latency. When warning of internal netperf errors, suggest running netperf directly to view error details. Other minor updates include: - clear tmp file names for safety in case of traps - simplify ping code, argument parsing and number validation - fix cases of wrong protocol usage with hostname as ping target - drop unneeded egrep usage Also update README accordingly, with clearer usage text and terminology. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
46 lines
1020 B
Makefile
46 lines
1020 B
Makefile
#
|
|
# Copyright (c) 2018-2024 Tony Ambardar
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=speedtest-netperf
|
|
PKG_VERSION:=1.1.0
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=GPL-2.0
|
|
PKG_MAINTAINER:=Tony Ambardar <itugrok@yahoo.com>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/speedtest-netperf
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=Script to measure the performance of your network and router
|
|
DEPENDS:=+netperf
|
|
CONFLICTS:=speedtest
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/speedtest-netperf/description
|
|
Script to measure the performance of your network and router.
|
|
|
|
Please see https://github.com/openwrt/packages/blob/master/net/speedtest-netperf/files/README.md for further information.
|
|
endef
|
|
|
|
define Build/Prepare
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/speedtest-netperf/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) ./files/speedtest-netperf.sh $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,speedtest-netperf))
|