roleoroleo / yi-hack-utils

This repo contains several programs compiled for yi-hack cams and useful for various situations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple benchmark of nodejs

ricardojlrufino opened this issue · comments

only sharing a simple benchmark of load time of node js app.
running on YI HOME camera, ARMv7 Processor rev 5 (v7l)
Hardware : sun8iw19
the newest is not always "better" .

image

to build

#!/bin/bash

# Set ARM toolchain path to setup make variables
source ./toolchain.sh


if [ ! -d node_src ]; then
    echo "Downloading Node Sources"
    git clone --depth 1 https://github.com/nodejs/node -b v10.9.0 node_src
fi

cd node_src

./configure --without-snapshot --cross-compiling --prefix=$(pwd)/install
make -j4
make install

mv node_src/install node_install

# if got erros "ld-musl-armhf.so.1 not found"
# sudo ln -s $TOOLCHAIN_PATH/lib/ld-musl-armhf.so.1 /lib/ld-musl-armhf.so.1