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:
Benoit Pierre
2024-11-23 19:28:57 +01:00
committed by GitHub
parent fbde771306
commit 64dabfa605

View File

@@ -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