A helper repository for testing various languages that can be embedded in golang, in a sandboxed environment. Contains some tests and benchmarking codes, to compare the performance with python3.
Examples on using lua package to load and run a lua script can be found in examples_test.go.
scripts/lua contains lua test scripts that are loaded
using the gopher-lua package, and run for
benchmarking, using go test
.
scripts/tengo contains tengo test scripts that are loaded
using the tengo package, and run for
benchmarking, using go test
.
scripts/python contains python test scripts that
perform identical work to the respective lua script. pytest
module was used
for testing and benchmarking the python scripts.
tests/.benchmark contains the result of benchmarking. Any file in .benchmark/Windows-CPython-3.7-64bit contains the detail info on the machine, on which the benchmarks were run.
Following Programs are used for benchmarking purposes:
- Fibonacci Series
- String Concatenation
- NBody Simulation
- Binary Tree