by amix · 16y ago · 0 comments
My guess is that node's GC configuration isn't finely tuned for 25KB structures or maybe the GC is called prematurely.
Some suggestions: try to turn off the GC and re-do the benchmark, try with smaller JSON datastructures, try with different versions of node. Each of these would give more evidence where the problem is.
Btw. in that benchmark: which versions of RingoJS and node.js are used? How much memory does each server use in the end?
Edit: What type of garbage collector does RingoJS/Rhino use - how is the GC configured for RingoJS?
The JSON I'm parsing is just objects with short string properties (around 10 characters). There's just one longer 25kb JSON string but that is never collected. As to Node configuration, can you provide some specific options to use? I've been asking about this on #node.js (and ryan) and I'm open to any suggestions.
Ringo is running with the server hotspot JVM without any further options.