Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
clang-output
listings
README.rst
basics.lua
binarytrees.lua
bitbench.lua
bittest.lua
bitwise_tests.lua
bug.lua
debugger_test.lua
dmrc_getsymbols.lua
dmrc_testllvm.lua
egor_test.lua
egor_test_typed.lua
fannkuchen.lua
fannkuchen.ravi
fornum_test1.lua
fornum_test2.lua
fornum_test2.ravi
fornum_test3.lua
gaussian2.lua
gaussian4.lua
mandel.lua
mandel.ravi
mandel1.lua
mandel1.ravi
matmul1.lua
matmul1.ravi
matmul1_ravi.lua
matmul2.lua
md5test.lua
nsievebits.lua
pcall.lua
pisum.lua
pisum.ravi
ravi_errors.ravi
ravi_test_ast.expected
ravi_test_ast.lua
ravi_testasmvm.lua
ravi_tests1.ravi
ravi_tests2.ravi
ravi_tests3.ravi
run_tests.sh
tableaccess.lua

README.rst

This folder contains various performance and unit tests.

Language tests

  • basics.lua - some simple tests
  • ravi_tests1.ravi - contains most of the Ravi specific tests
  • ravi_tests3.ravi - additional tests
  • ravi_errors.ravi - contains tests for error conditions
  • bitwise_tests.lua - modified Lua 5.3 tests to exercise JIT on bitwise operations

Performance tests

Following are simple loop tests:

  • fornum_test1.lua
  • fornum_test2.lua
  • fornum_test2.ravi - with optional types
  • fornum_test3.lua

Matrix multiplication test:

  • matmul1.lua - matrix multiplication (Lua compatible)
  • matmul1.ravi - matrix multiplication (ravi version with static typing)
  • matmul1_ravi.lua - matrix multiplication (ravi version with static typing)

Following performance tests were obtained from the The Computer Programming Language Benchmarks Game. Original author is Mike Pall.

  • fannkuchen.lua
  • fannkuchen.ravi - with optional types
  • mandel1.ravi - modified so that it can be JIT compiled
  • mandel1.lua - can be JIT compiled but also compatible with Lua

See run_tests.sh for how to run these tests.