aboutsummaryrefslogtreecommitdiff
path: root/tests/bench.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a benchmark duration, not interation countMark Pulford2011-05-291-2/+12
| | | | | Roughly calculate the number of iterations required to run the benchmark for the chosen duration.
* Add trivial types.json exampleMark Pulford2011-05-291-0/+2
|
* Move all benchmark code into bench.luaMark Pulford2011-05-161-0/+34
| | | | | Move benchmark() into bench.lua since it not used elsewhere. Replace posix.gettimeofday() with socket.gettime() to improve portability.
* Implement data driven test frameworkMark Pulford2011-05-081-8/+7
| | | | | | | | - Add run_test(): Test a function and verify its output - Add run_test_group(): Execute a test batch - Add serialise_value(): Serialise a Lua value into the Lua syntax - Add file_save() helper function - Add NaN comparison support to compare_values()
* Add basic JSON tests and benchmarkMark Pulford2011-05-031-0/+39