Ravi is a dialect of Lua, featuring limited optional static typing, JIT and AOT compilers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
XmiliaH 5ca801596a Bump binary version & smaller sizes for stripped binaries 4 months ago
..
comptests tests updated 4 months ago
debugger issue #157 Long overdue reorg of tests, much more needs to be done, but this is a start 1 year ago
extra issue #157 Long overdue reorg of tests, much more needs to be done, but this is a start 1 year ago
language tests updated 4 months ago
lua53 Bump binary version & smaller sizes for stripped binaries 4 months ago
performance issue #210 fix a test 4 months ago
README.rst issue #157 Long overdue reorg of tests, much more needs to be done, but this is a start 1 year ago
run_tests.sh issue #210 tests 4 months ago

README.rst

This folder contains various performance and unit tests.

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

Performance tests
-----------------
Following are simple loop tests:

* performance/fornum_test1.lua
* performance/fornum_test2.lua
* performance/fornum_test2.ravi - with optional types
* performance/fornum_test3.lua

Matrix multiplication test:

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

Following performance tests were obtained from the `The Computer Programming Language Benchmarks Game <http://benchmarksgame.alioth.debian.org/>`_. Original author is `Mike Pall <http://luajit.org/>`_.

* performance/fannkuchen.lua
* performance/fannkuchen.ravi - with optional types

* performance/mandel1.ravi - modified so that it can be JIT compiled
* performance/mandel1.lua - can be JIT compiled but also compatible with Lua

See ``run_tests.sh`` for how to run these tests.