<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/tests/bench.lua, branch or-1.31.0</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=or-1.31.0</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=or-1.31.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2012-03-04T08:24:35+00:00</updated>
<entry>
<title>Simplify string.format() calls</title>
<updated>2012-03-04T08:24:35+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-19T13:06:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=31bf122c1d1d9e3812b9ef2555d537f509ae3f05'/>
<id>urn:sha1:31bf122c1d1d9e3812b9ef2555d537f509ae3f05</id>
<content type='text'>
Simply string.format() calls with OO method notation.
</content>
</entry>
<entry>
<title>Improve benchmark stability</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-13T11:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=46ba498b003b1ac4898b8db39c9aea5158af093f'/>
<id>urn:sha1:46ba498b003b1ac4898b8db39c9aea5158af093f</id>
<content type='text'>
Update benchmark script to average the best half (round up) of the
result set. Ensure the initial call rate is calculated from a run of at
least 1ms.

Remove garbage collection control since any variations due to garbage
collection are better handled by averaging multiple results.
</content>
</entry>
<entry>
<title>Rename "cjson-misc" module to "cjson.util"</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-12T20:47:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=73d33f25760d4d4ffb7fa8acf6a67d0f7e19fec7'/>
<id>urn:sha1:73d33f25760d4d4ffb7fa8acf6a67d0f7e19fec7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update bench.lua to support different JSON modules</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-03T21:27:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=c7fbb8e441b6a62e0d6d016add8ed6b44d90d981'/>
<id>urn:sha1:c7fbb8e441b6a62e0d6d016add8ed6b44d90d981</id>
<content type='text'>
- Select via JSON_MODULE environment variable (default "cjson")
- Custom runtime configuration can be stored in bench-MODNAME.lua
- Add run_script() to cjson-misc and update lua2cjson.lua
</content>
</entry>
<entry>
<title>Convert common.lua into cjson-misc module</title>
<updated>2012-01-03T10:55:31+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-03T10:55:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=041a32e52f694b68a881a72b7cb5f62aca449400'/>
<id>urn:sha1:041a32e52f694b68a881a72b7cb5f62aca449400</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for Lua 5.2 and cjson.new</title>
<updated>2011-12-30T07:18:12+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-12-30T07:18:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=85bf3b798f6d52c374c35f7fbe47df132891d3b2'/>
<id>urn:sha1:85bf3b798f6d52c374c35f7fbe47df132891d3b2</id>
<content type='text'>
Update all Lua scripts to use new module init style everywhere:
	local json = require "cjson"

Lua CJSON does not register a global table under Lua 5.2. The global
table can be disabled under Lua 5.1 with DISABLE_CJSON_GLOBAL.

Other changes:
- Store CJSON configuration as an upvalue for each function.
- Add "cjson.new" function to create another module table with a
  separate configuration.
- Add _NAME and _VERSION variables.
</content>
</entry>
<entry>
<title>Use a benchmark duration, not interation count</title>
<updated>2011-05-29T12:56:12+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-29T12:56:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=7e95a594465453f77b7c9449a3a486771e174111'/>
<id>urn:sha1:7e95a594465453f77b7c9449a3a486771e174111</id>
<content type='text'>
Roughly calculate the number of iterations required to run the benchmark
for the chosen duration.
</content>
</entry>
<entry>
<title>Add trivial types.json example</title>
<updated>2011-05-29T08:35:39+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-29T08:35:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=9d7bd06ad57832cfe6bba22acc7d7b8c74cdf8b8'/>
<id>urn:sha1:9d7bd06ad57832cfe6bba22acc7d7b8c74cdf8b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move all benchmark code into bench.lua</title>
<updated>2011-05-16T09:51:06+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-16T09:51:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=a966d2fd2aaff7651d7928fb8381a17bf1f5f517'/>
<id>urn:sha1:a966d2fd2aaff7651d7928fb8381a17bf1f5f517</id>
<content type='text'>
Move benchmark() into bench.lua since it not used elsewhere.
Replace posix.gettimeofday() with socket.gettime() to improve portability.
</content>
</entry>
<entry>
<title>Implement data driven test framework</title>
<updated>2011-05-07T16:53:57+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-05-07T16:53:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360'/>
<id>urn:sha1:0d56e3bebecb7008f0baa7eaccf3dc9b2a39e360</id>
<content type='text'>
- 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()
</content>
</entry>
</feed>
