mirror of
https://github.com/gvx/bitser.git
synced 2024-11-24 06:54:20 +00:00
Add lua-MessagePack to benchmark
This commit is contained in:
parent
40f5cab917
commit
164e4d8e6e
6
main.lua
6
main.lua
@ -3,6 +3,7 @@ local found_binser, binser = pcall(require, 'binser')
|
|||||||
local found_ser, ser = pcall(require, 'ser')
|
local found_ser, ser = pcall(require, 'ser')
|
||||||
local found_serpent, serpent = pcall(require, 'serpent')
|
local found_serpent, serpent = pcall(require, 'serpent')
|
||||||
local found_smallfolk, smallfolk = pcall(require, 'smallfolk')
|
local found_smallfolk, smallfolk = pcall(require, 'smallfolk')
|
||||||
|
local found_msgpack, msgpack = pcall(require, 'MessagePack')
|
||||||
|
|
||||||
local cases
|
local cases
|
||||||
local selected_case = 1
|
local selected_case = 1
|
||||||
@ -35,6 +36,11 @@ if found_smallfolk then
|
|||||||
desers.smallfolk = smallfolk.loads
|
desers.smallfolk = smallfolk.loads
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if found_msgpack then
|
||||||
|
sers.msgpack = msgpack.pack
|
||||||
|
desers.msgpack = msgpack.unpack
|
||||||
|
end
|
||||||
|
|
||||||
local view_absolute = true
|
local view_absolute = true
|
||||||
local resultname = "serialisation time in seconds"
|
local resultname = "serialisation time in seconds"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user