<commit_before>## About
```pst``` is a simple HTTP Proxy Stress Test utility.

## Installing
This project is written in the [Go](http://golang.org/) programming language and to build it you need to install Go compiler and set some enviroment variables. [Here is an instructions on how to do it](http://golang.org/doc/install). After you've done all requered steps run the following command in your shell:
```
$ go get github.com/thekvs/pst
```
and this will build the binary in ```$GOPATH/bin```.

## Usage examples
```
$ ./pst -c 100 -d 2m -u /tmp/urls.txt -p http://john:mycoolpass@proxy.example.com:3128
```
Run stress test for (approximately) 2 minutes using 100 open connections to the proxy on address ```proxy.example.com:3128```. continuously submit urls from the file ```/tmp/urls.txt```.


```
$ ./pst -c 100 -R 1000 -u /tmp/urls.txt -p http://john:mycoolpass@proxy.example.com:3128
```
Continuously submit urls from the file ```/tmp/urls.txt``` 1000 times making 100 simultaneous connections to the proxy. In the ideal situation each connection should submit 10 urls.


```
$ ./pst -c 100 -r 100 -u /tmp/urls.txt -p http://john:mycoolpass@proxy.example.com:3128
```
Submit urls from the file ```/tmp/urls.txt``` 100 times in *each* connection making 100 simultaneous connections to the proxy. I.e. in total 10000 urls will be requested through proxy.

For more options see output of ```$ ./pst -h``` command.
<commit_msg>add build status icon from travis-ci.org<commit_after>## About
```pst``` is a simple HTTP Proxy Stress Test utility.

## Installing
[![Build Status](https://travis-ci.org/thekvs/pst.svg?branch=master)](https://travis-ci.org/thekvs/pst)

This project is written in the [Go](http://golang.org/) programming language and to build it you need to install Go compiler and set some enviroment variables. [Here is an instructions on how to do it](http://golang.org/doc/install). After you've done all requered steps run the following command in your shell:
```
$ go get github.com/thekvs/pst
```
and this will build the binary in ```$GOPATH/bin```.

## Usage examples
```
$ ./pst -c 100 -d 2m -u /tmp/urls.txt -p http://john:mycoolpass@proxy.example.com:3128
```
Run stress test for (approximately) 2 minutes using 100 open connections to the proxy on address ```proxy.example.com:3128```. continuously submit urls from the file ```/tmp/urls.txt```.


```
$ ./pst -c 100 -R 1000 -u /tmp/urls.txt -p http://john:mycoolpass@proxy.example.com:3128
```
Continuously submit urls from the file ```/tmp/urls.txt``` 1000 times making 100 simultaneous connections to the proxy. In the ideal situation each connection should submit 10 urls.


```
$ ./pst -c 100 -r 100 -u /tmp/urls.txt -p http://john:mycoolpass@proxy.example.com:3128
```
Submit urls from the file ```/tmp/urls.txt``` 100 times in *each* connection making 100 simultaneous connections to the proxy. I.e. in total 10000 urls will be requested through proxy.

For more options see output of ```$ ./pst -h``` command.

{'fraction_non_alphanumeric': 0.13551401869158877, 'fraction_numerical': 0.038050734312416554, 'mean_word_length': 4.028523489932886, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4949343', 'n_tokens_mistral': 1059, 'n_tokens_neox': 919, 'n_words': 377}