mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Escargot is a lightweight JavaScript engine designed specifically for resource-constrained environments.
- C++ 91.5%
- Python 4.1%
- JavaScript 2%
- Java 1.7%
- CMake 0.5%
- Other 0.2%
|
|
||
|---|---|---|
| .ahub/sam | ||
| .github | ||
| .jenkins | ||
| build | ||
| docs | ||
| packaging | ||
| src | ||
| test | ||
| third_party | ||
| tools | ||
| .clang-format | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| LICENSE | ||
| LICENSE.Apache-2.0 | ||
| LICENSE.BSD-2-Clause | ||
| LICENSE.BSD-3-Clause | ||
| LICENSE.LGPL-2.1+ | ||
| LICENSE.MIT | ||
| LICENSE.MPL-2.0 | ||
| README.md | ||
| RELEASE_VERSION | ||
Try-Catch Version of Escargot (Origin)
Prerequisites
On Ubuntu Linux
General build prerequisites:
sudo apt-get install autoconf automake cmake libtool libicu-dev ninja-build
Prerequisites for x86-64-to-x86 compilation:
sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install libicu-dev:i386
Build Escargot
build core runtime of Escargot engine (excluding intl, temporal etc)
git clone https://github.com/Samsung/escargot.git -b try-catch
cd escargot
git submodule update --init third_party
cmake -H. -Bout/test/release -DESCARGOT_HOST=linux -DESCARGOT_ARCH=[x86|x64|arm|aarch64] -DESCARGOT_MODE=release -DESCARGOT_OUTPUT=shell -DESCARGOT_THREADING=ON -DESCARGOT_TEST=ON -GNinja
ninja -Cout/test/release
Testing
octane
Using test runner
tools/run-tests.py --engine=ESCARGOT_BINARY_PATH octane
Or directly run octane benchmarks
cd test/octane/
./escargot run.js
sunspider
Using test runner
tools/run-tests.py --engine=ESCARGOT_BINARY_PATH sunspider-js
kraken
download kraken benchmark
git clone https://github.com/mozilla-it/krakenbenchmark.mozilla.org.git
run kraken benchmark
cd krakenbenchmark.mozilla.org
./sunspider --shell ESCARGOT_BINARY_PATH --suite kraken-1.1
results would be stored in kraken-1.1-results directory