1 Star 0 Fork 0

木木少/android-iperf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

android-iperf

Build Status GitHub license

Getting Started

What is iPerf / iPerf3 ?

iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, buffers and protocols (TCP, UDP, SCTP with IPv4 and IPv6). For each test it reports the bandwidth, loss, and other parameters. This is a new implementation that shares no code with the original iPerf and also is not backwards compatible. iPerf was orginally developed by NLANR/DAST. iPerf3 is principally developed by ESnet / Lawrence Berkeley National Laboratory. It is released under a three-clause BSD license.

https://iperf.fr/

Remark No iPerf/iPerf3 source codes are included in this repo

Supported versions

iPerf2

Version Release day Source Code
2.0.5 2010-07-08 Source Code
2.0.10 2017-08-11 Source Code
2.0.12 compiled w/o PTHREADS! 2018-06-26 Source Code
2.0.13 compiled w/o PTHREADS! 2019-01-22 Source Code

iPerf3

Version Release day Source Code
3.1.6 2017-02-02 Source Code
3.1.7 2017-03-03 Source Code
3.2 2017-06-26 Source Code
3.2rc1 2017-06-19 Source Code
3.3 2017-10-30 Source Code
3.4 2018-02-12 Source Code
3.5 2018-02-28 Source Code
3.6 2018-06-22 Source Code
3.7 2019-06-20 Source Code

Download

Pre-build iPerf/iPerf3 binaries for Android 7.0 (API level 24) with SDK 4333796 and NDK r19 using Travis-CI Deployment.

ABI Binaries
arm64-v8a here
armeabi-v7a here
x86 here
x86_64 here

More about Application Binary Interface (ABI): https://developer.android.com/ndk/guides/abis

To get supported ABI by an Android device:

adb shell getprop ro.product.cpu.abilist

Build

Prerequisites

Docker

Running

  1. Clone this repo
  2. Build image from Dockerfile
docker build -t android-ndk:latest .
  1. Run container and fetch binaries
docker run -d --name android-ndk-container android-ndk
mkdir -p binaries
docker cp -a android-ndk-container:/tmp/libs binaries
docker stop android-ndk-container

Usage

To upload binary file to an Android device

adb push <LOCAL_PATH_TO_BINARY_FILE> /data/local/tmp/<BINARY_NAME>
adb shell chmod 777 /data/local/tmp/<BINARY_NAME>

Set a default iPerf2 version

adb shell ln -s /data/local/tmp/<IPERF2_BINARY_NAME> iperf

Executing iPerf2

adb shell /data/local/tmp/iperf <IPERF_ARGUMENTS>

Set a default iPerf3 version

adb shell ln -s /data/local/tmp/<IPERF3_BINARY_NAME> iperf3

Executing iPerf3

adb shell /data/local/tmp/iperf3 <IPERF_ARGUMENTS>

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

iPerf community - iperf.fr

MIT License Copyright (c) 2019 Three Headed Knight Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Pre-compiled iPerf binaries for Android + Dockerfile with SDK and NDK for manual build 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/windsnake/android-iperf.git
git@gitee.com:windsnake/android-iperf.git
windsnake
android-iperf
android-iperf
master

搜索帮助