2 comments

0

Is there any particular reason why Nim's performance is so poor in the JSON benchmark?

0

"Small memory allocations and the garbage collector are the usual culprits." --def

This measures the standard library JSON implementation, not the language. For example, you can see that C/C++ json libs vary greatly. Nim's default json module does a lot more work for high-level easy access of the records. There are other implementations that are much faster. With other libraries in can be just as fast as D.