<commit_before># Toolkit for Benchmarking Socket.io and Lightstreamer-Node #

This toolkit can be used to do simple benchmarking of both Socket.io and Lightstreamer. The generated data can then be easily compared between the two solutions.
The toolkit contains a javascript generator that connects respectively to a Socket.io server or to a Lightstreamer server that in turn broadcasts the generated updates to Java clients over WebSockets.

## Requirements ##
This README assumes that Node.js and a JDK are already installed on the target machines and referenced in the global path.

## Server ##

### Required libs ###
*   socket.io 
*   express.js
*   socket.io-client
*   lightstreamer-adapter 

you can install everything using npm
```
npm install socket.io express socket.io-client lightstreamer-adapter<commit_msg>add link to blog post<commit_after># Toolkit for Benchmarking Socket.io and Lightstreamer-Node #

This toolkit can be used to do simple benchmarking of both Socket.io and Lightstreamer. The generated data can then be easily compared between the two solutions.
The toolkit contains a javascript generator that connects respectively to a Socket.io server or to a Lightstreamer server that in turn broadcasts the generated updates to Java clients over WebSockets.

A blog post detailing a benchmark run using this toolkit is available on the [Lightstreamer blog](http://blog.lightstreamer.com/2013/05/benchmarking-socketio-vs-lightstreamer.html)

## Requirements ##
This README assumes that Node.js and a JDK are already installed on the target machines and referenced in the global path.

## Server ##

### Required libs ###
*   socket.io 
*   express.js
*   socket.io-client
*   lightstreamer-adapter 

you can install everything using npm
```
npm install socket.io express socket.io-client lightstreamer-adapter
{'fraction_non_alphanumeric': 0.056768558951965066, 'fraction_numerical': 0.0032751091703056767, 'mean_word_length': 4.571428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2382347', 'n_tokens_mistral': 497, 'n_tokens_neox': 466, 'n_words': 227}