<commit_before>Performance of Scala compared to Java

Main goal of this project is to show that it is possible to write idiomatic Scala code which run on par with Java in terms of execution speed and memory consumption.

[![Travis CI Build Status](https://secure.travis-ci.org/plokhotnyuk/scala-vs-java.png)](http://travis-ci.org/plokhotnyuk/scala-vs-java)

[![Shippable Build Status](https://api.shippable.com/projects/54131ace814f6b1f6a9fb4dc/badge?branchName=master)](https://app.shippable.com/projects/54131ace814f6b1f6a9fb4dc/builds)

## Hardware required
- CPU: 2 cores or more
- RAM: 2Gb or greater

## Software installed required
- JDK: 1.7.0_x or newer
- sbt: 0.13.x

## Building & running benchmarks
Use following command-line instructions to build from sources and run all benchmarks:
```sh
sbt "run .*" >outX.txt
```
For printing format of mask, other options & list of available profilers use following commands:
```sh
sbt -Dsbt.log.noformat=true "run -h" > help.txt
sbt -Dsbt.log.noformat=true "run -lprof" > profilers.txt
```

## Test result descriptions
Results of running on different environments:

#### out0.txt
Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz (max 3.50GHz), RAM 12Gb DDR3-1333, Ubuntu 14.10, Oracle JDK 1.8.0_31-b13 64-bit
<commit_msg>Fix Shipable badge<commit_after>Performance of Scala compared to Java

Main goal of this project is to show that it is possible to write idiomatic Scala code which run on par with Java in terms of execution speed and memory consumption.

[![Travis CI Build Status](https://secure.travis-ci.org/plokhotnyuk/scala-vs-java.png)](http://travis-ci.org/plokhotnyuk/scala-vs-java)

[![Shippable Build Status](https://api.shippable.com/projects/550ee5965ab6cc1352a767a9/badge?branchName=master)](https://app.shippable.com/projects/550ee5965ab6cc1352a767a9/builds)

## Hardware required
- CPU: 2 cores or more
- RAM: 2Gb or greater

## Software installed required
- JDK: 1.7.0_x or newer
- sbt: 0.13.x

## Building & running benchmarks
Use following command-line instructions to build from sources and run all benchmarks:
```sh
sbt "run .*" >outX.txt
```
For printing format of mask, other options & list of available profilers use following commands:
```sh
sbt -Dsbt.log.noformat=true "run -h" > help.txt
sbt -Dsbt.log.noformat=true "run -lprof" > profilers.txt
```

## Test result descriptions
Results of running on different environments:

#### out0.txt
Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz (max 3.50GHz), RAM 12Gb DDR3-1333, Ubuntu 14.10, Oracle JDK 1.8.0_31-b13 64-bit

{'fraction_non_alphanumeric': 0.11606790367153573, 'fraction_numerical': 0.054480852743782074, 'mean_word_length': 4.643652561247216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '4834181', 'n_tokens_mistral': 979, 'n_tokens_neox': 863, 'n_words': 270}