My own benchmarks against 10 other libraries... #23
adriweb
started this conversation in
Show and tell
Replies: 1 comment
-
|
That's awesome! Do let me know if and when you open-source it! Funny, I expected Ser and Smallfolk to do a lot worse, given that I've marked them as deprecated almost five years ago. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been developing a lua (de)serialization library benchmarking framework (works through busted and produces a nice readable output) - I hope to make it open-source some day, but in the meantime here are some interesting results :)
The holes that are present as the complexity increases simply mean that the library can't handle it.
For instance, in the "complex" category, there are big numbers, lua keywords and booleans as table keys, etc. In the "craziest" category, there are recursive tables, and here are some of the tests in the "crazy" category:
{ ["unusual numbers"] = { ["math.pi"] = math.pi, ["math.sqrt(2)"] = math.sqrt(2), ["999e999"] = 999e999, ["math.huge (inf)"] = math.huge, ["0/0 (nan)"] = 0/0, ["1/0 (inf)"] = 1/0, ["-1/0 (-inf)"] = -1/0, }, ...Benchmark results:
Bitser manages to be the best in output length, by far, while being very good at speed and memory usage. It's clearly the best overall, at least for my usescases :)
Beta Was this translation helpful? Give feedback.
All reactions