mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
tests: speedup persist huge tables test (#12786)
For example on my machine: | test duration (ms) | master | PR | | :- | -: | -: | | regular run | 859.82 | 104.38 (÷8.2) | | coverage run | 40735.60 | 4151.34 (÷9.8) |
This commit is contained in:
@@ -95,7 +95,7 @@ describe("Persist module", function()
|
||||
end)
|
||||
|
||||
it("should work with huge tables", function()
|
||||
local tab = arrayOf(100000)
|
||||
local tab = arrayOf(10000)
|
||||
for _, codec in ipairs({"bitser", "luajit"}) do
|
||||
local ser = Persist.getCodec(codec).serialize
|
||||
local deser = Persist.getCodec(codec).deserialize
|
||||
|
||||
Reference in New Issue
Block a user