-
Notifications
You must be signed in to change notification settings - Fork 73
HOWTO : how to build pipy on ubuntu20
CaiShu edited this page Mar 18, 2022
·
3 revisions
A quick guide , it works on my ubuntu-arm64 (UTM VM, ubuntu20 arm64 minimal install with ssh-server) on M1 :
- clone pipy : git clone https://github.com/flomesh-io/pipy.git
- install build-essential : sudo apt install build-essential -y
- install clang & cmake : sudo apt install clang cmake -y
- install nodejs16 :
- curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
- sudo apt -y install nodejs
- build pipy :
- cd pipy
- ./build.sh
Put it all together:
git clone https://github.com/flomesh-io/pipy.git
sudo apt install build-essential -y
sudo apt install clang cmake -y
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
sudo apt -y install nodejs
cd pipy
./build.sh
bin/pipy -v
Run some basic benchmark with wrk:
cd ~/pipy
bin/pipy tutorial/01-hello/hello.js &
wrk -c100 -t1 -d10 http://localhost:8080/ --latency
Result will like this :
caishu@ubuntu-arm64:~$ wrk -c100 -t1 -d10 http://localhost:8080/ --latency
Running 10s test @ http://localhost:8080/
1 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 618.29us 567.08us 16.39ms 95.99%
Req/Sec 176.57k 18.72k 197.20k 88.00%
Latency Distribution
50% 514.00us
75% 559.00us
90% 662.00us
99% 3.21ms
1753393 requests in 10.00s, 123.74MB read
Requests/sec: 175323.63
Transfer/sec: 12.37MB
Works well!