"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.
2 comments
0 u/lurker990 30 Oct 2019 05:26
Is there any particular reason why Nim's performance is so poor in the JSON benchmark?
0 u/libman [OP] 30 Oct 2019 05:35
"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.