Here are a couple of small changes for the clojure server, which may or may not help its performance.
1) Only JSON-encode the message once for broadcast, rather than each
time around the loop.
2) More server threads. httpkit defaults to only 4 threads. Using more
might not make any difference, since it's async I/O, but since it's easy
to do, I thought it would be worth a try.
Thanks for doing this comparison!
Here are a couple of small changes for the clojure server, which may or may not help its performance.
1) Only JSON-encode the message once for broadcast, rather than each time around the loop.
2) More server threads. httpkit defaults to only 4 threads. Using more might not make any difference, since it's async I/O, but since it's easy to do, I thought it would be worth a try.