Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Jan 31, 2016
0 parents commit a273241
Show file tree
Hide file tree
Showing 205 changed files with 15,176 additions and 0 deletions.
77 changes: 77 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
********************************************
** THIS IS NOT THE TEST SUITE FOR LUAJIT! **
********************************************

In fact it doesn't even have the steps to build it or run it,
so please don't complain.

This repo is a place to collect and cleanup tests for LuaJIT.
They should eventually be merged into the main LuaJIT repo.

It's definitely not in the best state and needs a serious
cleanup effort. Sorry.


Many issues need to be resolved before the merge can be performed:

- Choose a portable test runner
Requirement: very few dependencies, possibly Lua/Shell only

- Minimal test runner library, wherever assert() is not enough

- Debugging test failures is a lot simpler, when individual tests can still
be run from the LuaJIT command line without any big dependencies

- Define consistent grouping of all tests

- Define consistent naming of all tests

- Split everything into a lot of tiny tests

- Reduce time taken to run the test suite
Separate tiers, parallelized testing

- Some tests can only run under certain configurations (e.g. FFI)

- Some tests need a clean slate to give reproducible results
Most others should be run from the same state for performance resons

- Hard to check that the JIT compiler actually generates the intended code
Maybe use a test matching variant of the jit.dump module

- Portability concerns

- Avoiding undefined behavior in tests or ignoring it

- Matrix of architectures + configuration options that need testing

- Merge tests from other sources, e.g. the various Lua test suites.

- Tests should go into the LuaJIT git repo, but in separate tarballs
for the releases


There are some benchmarks, too:

- Some of the benchmarks can be used as tests (with low scaling)
by checksumming their output and comparing against known good results

- Most benchmarks need different scalings to be useful for comparison
on all architectures


Note from Mike Pall:

I've removed all tests of undeterminable origin or that weren't explicitly
contributed with the intention of being part of a public test suite.

I hereby put all Lua/LuaJIT tests and benchmarks that I wrote under the
public domain. I've removed any copyright headers.

If I've forgotten an attribution or you want your contributed test to be
removed, please open an issue.

There are some benchmarks that bear other copyrights, probably public
domain, BSD or MIT licensed. If the status cannot be determined, they
need to be replaced or removed before merging with the LuaJIT repo.

29 changes: 29 additions & 0 deletions bench/PARAM_arm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
array3d 200
binary-trees 13
chameneos 1e6
coroutine-ring 3e6
euler14-bit 5e6
fannkuch 10
fasta 2e6
k-nucleotide 5e5 FASTA_500000
life
mandelbrot 2000
mandelbrot-bit 2000
md5 5000
nbody 1e6
nsieve 9
nsieve-bit 9
nsieve-bit-fp 9
partialsums 2e6
pidigits-nogmp 2000
ray 4
recursive-ack 9
recursive-fib 37
revcomp 1e6 FASTA_1000000
scimark-fft 2000
scimark-lu 300
scimark-sor 5000
scimark-sparse 5e3
series 1500
spectral-norm 1000
sum-file 1000 SUMCOL_1000
29 changes: 29 additions & 0 deletions bench/PARAM_mips.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
array3d 50
binary-trees 10
chameneos 5e4
coroutine-ring 2e5
euler14-bit 2e4
fannkuch 8
fasta 2e4
k-nucleotide 1e4 FASTA_10000
life
mandelbrot 150
mandelbrot-bit 150
md5 10
nbody 1e4
nsieve 4
nsieve-bit 4
nsieve-bit-fp 2
partialsums 5e4
pidigits-nogmp 150
ray 2
recursive-ack 7
recursive-fib 29
revcomp 5e4 FASTA_50000
scimark-fft 20
scimark-lu 3
scimark-sor 40
scimark-sparse 100
series 50
spectral-norm 100
sum-file 100 SUMCOL_100
29 changes: 29 additions & 0 deletions bench/PARAM_ppc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
array3d 200
binary-trees 13
chameneos 1e6
coroutine-ring 4e6
euler14-bit 1e6
fannkuch 9
fasta 5e5
k-nucleotide 1e5 FASTA_100000
life
mandelbrot 800
mandelbrot-bit 800
md5 500
nbody 1e5
nsieve 8
nsieve-bit 8
nsieve-bit-fp 8
partialsums 5e5
pidigits-nogmp 800
ray 5
recursive-ack 9
recursive-fib 34
revcomp 1e6 FASTA_1000000
scimark-fft 500
scimark-lu 100
scimark-sor 1000
scimark-sparse 3000
series 1000
spectral-norm 200
sum-file 1000 SUMCOL_1000
29 changes: 29 additions & 0 deletions bench/PARAM_x86.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
array3d 300
binary-trees 16
chameneos 1e7
coroutine-ring 2e7
euler14-bit 2e7
fannkuch 11
fasta 25e6
k-nucleotide 5e6 FASTA_5000000
life
mandelbrot 5000
mandelbrot-bit 5000
md5 20000
nbody 5e6
nsieve 12
nsieve-bit 12
nsieve-bit-fp 12
partialsums 1e7
pidigits-nogmp 5000
ray 9
recursive-ack 10
recursive-fib 40
revcomp 5e6 FASTA_5000000
scimark-fft 50000
scimark-lu 5000
scimark-sor 50000
scimark-sparse 15e4
series 10000
spectral-norm 3000
sum-file 5000 SUMCOL_5000
Loading

0 comments on commit a273241

Please sign in to comment.