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.
ravi/ravi-tests
Dibyendu Majumdar f8a17a7b37
prepare for 5.3.1 merge
9 years ago
..
listings add bytecode listings 9 years ago
longjmp_issue add test for longjmp issue 9 years ago
README.rst implement OP_DIV 9 years ago
basics.lua play with some optimizer passes in LLVM 9 years ago
bitwise_tests.lua bitwise ops wip 9 years ago
fannkuchen.lua implement OP_RAVI_SETTABLE_AI 9 years ago
fannkuchen.ravi prepare for 5.3.1 merge 9 years ago
fornum_test1.lua code refactoring 9 years ago
fornum_test2.lua code refactoring 9 years ago
fornum_test2.ravi reformat code 9 years ago
fornum_test3.lua code refactoring 9 years ago
mandel.lua validate the mandel test 9 years ago
mandel.ravi change syntax from int to integer, and double to number 9 years ago
mandel1.lua implement OP_DIV 9 years ago
mandel1.ravi updated docs 9 years ago
matmul1.lua add matmul benchmark 9 years ago
matmul1.ravi prepare for 5.3.1 merge 9 years ago
matmul2.lua add matmul benchmark 9 years ago
pcall.lua investigate crash on windows 9 years ago
pisum.lua some more tests 9 years ago
pisum.ravi change syntax from int to integer, and double to number 9 years ago
ravi_tests1.ravi initial work on function parameter types 9 years ago

README.rst

This folder contains various performance and unit tests.


Unit tests
----------
* ravi_tests1.ravi - contains some basic tests

Performance tests
-----------------
* fornum_test1.lua
* fornum_test2.lua
* fornum_test2.ravi - with optional types
* fornum_test3.lua

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/>`_.

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

* mandel.lua
* mandel.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

Example LLVM and Ravi bytecode listings
---------------------------------------
The files ending in ``.ll`` extension are LLVM IR dumps of some of the samples.
In the listings sub-folder you will also find some Ravi bytecode listings.