Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scaffolding for running tests and benchmarks #18

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Add scaffolding for running tests and benchmarks #18

wants to merge 29 commits into from

Conversation

siddhesh
Copy link

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.

SameeraDes and others added 29 commits January 8, 2019 06:41
… 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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant