From 164e4d8e6e5b190358155a32638a3f203151cad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Co=C5=9Fku=20Ba=C5=9F?= Date: Tue, 16 Feb 2016 10:32:15 +0200 Subject: [PATCH] Add lua-MessagePack to benchmark --- main.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.lua b/main.lua index b41a1ea..8e7202c 100644 --- a/main.lua +++ b/main.lua @@ -3,6 +3,7 @@ local found_binser, binser = pcall(require, 'binser') local found_ser, ser = pcall(require, 'ser') local found_serpent, serpent = pcall(require, 'serpent') local found_smallfolk, smallfolk = pcall(require, 'smallfolk') +local found_msgpack, msgpack = pcall(require, 'MessagePack') local cases local selected_case = 1 @@ -35,6 +36,11 @@ if found_smallfolk then desers.smallfolk = smallfolk.loads end +if found_msgpack then + sers.msgpack = msgpack.pack + desers.msgpack = msgpack.unpack +end + local view_absolute = true local resultname = "serialisation time in seconds"