Add scaffolding for running tests and benchmarks#18
Open
siddhesh wants to merge 29 commits intoLuaJIT:masterfrom
siddhesh:master
Open
Add scaffolding for running tests and benchmarks#18siddhesh wants to merge 29 commits intoLuaJIT:masterfrom siddhesh:master
siddhesh wants to merge 29 commits intoLuaJIT:masterfrom
siddhesh:master
Conversation
… math.mod are renamed in lua5.1, hence, need to check the version pre-5.1. math.log10 is made obsolete in lua5.2, hence, 5.2 onwards, math.log10 should not be available.
This change scales the parameters so that most of the benchmarks run for a minimum of 5 seconds. Some benchmarks (such as sum-file and k-nucleotide) don't read the scaling parameter yet so they need to be changed.
Add loop to run the search multiple times.
Add support to compute sum multiple times in the benchmark.
This reverts commit 158ad7e.
This reverts commit 1846523.
Helps against OOM errors
Add a Makefile to list and run benchmarks. Add a C program that loads the benchmark scripts and repeatedly runs them to get a ops/sec score.
Also update the version and email address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This set of patches adds support for running benchmarks and tests using simple make commands like make check, make bench and make (to run both check and then a bench). The test runs are pretty much complete and just need to be synced up with the way bench is run, so most of the changes are in bench.
The benchmarks can now be run in two ways, one via a benchmark driver linked against libluajit.a (provide a path to it using LUAJIT_PATH) or directly via an interpreter specified using the LUA_BIN make variable. Detailed descriptions are in bench/README.
This should also make LuaJIT-test-cleanup good enough for incorporation into LuaJIT proper with added copyright and licensing. Given that the code is in public domain (except code that I added, which is MIT licensed), it should be pretty straightforward to do.