android-iperf
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.
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
2.0.10
2017-08-11
2.0.12 compiled w/o PTHREADS!
2018-06-26
2.0.13 compiled w/o PTHREADS!
2019-01-22
iPerf3
Version
Release day
Source Code
3.1.6
2017-02-02
3.1.7
2017-03-03
3.2
2017-06-26
3.2rc1
2017-06-19
3.3
2017-10-30
3.4
2018-02-12
3.5
2018-02-28
3.6
2018-06-22
3.7
2019-06-20
3.8
2020-06-08
3.8.1
2020-06-10
3.9
2020-08-17
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
armeabi-v7a
x86_64
To get supported ABI by an Android device:
adb shell getprop ro.product.cpu.abilist
Build
Prerequisites
Docker
Running
Clone this repo
Build image from Dockerfile
docker build -t android-ndk:latest .
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 /data/local/tmp/
adb shell chmod 777 /data/local/tmp/
Set a default iPerf2 version
adb shell ln -s /data/local/tmp/ iperf
Executing iPerf2
adb shell /data/local/tmp/iperf
Set a default iPerf3 version
adb shell ln -s /data/local/tmp/ iperf3
Executing iPerf3
adb shell /data/local/tmp/iperf3
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
iPerf community - iperf.fr