Skip to content

Commit

Permalink
Merge branch 'v0_9_0' of https://github.com/JosepeDev/VarEnc into v0_9_0
Browse files Browse the repository at this point in the history
  • Loading branch information
jozzzzep committed Dec 16, 2020
2 parents 742fdce + c7cc9f1 commit 7b8b1ee
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ After the benchmark is finished, the results will be printed. From there you can
I ran a few benchmarks on my Laptop (Intel Core i7-8750h, GTX1060-MaxQ), and these are the results:
| Comparison | CPS (Changes per second) |
|---------------------------------------------------------|:------------------------:|
| **EncInt** - int (Similar to **EncLong**) | 10,608,568 - 596,246,010 |
| **EncDouble** - double (Similar to **EncFloat** and **EncDecimal**) | 15,137,881 - 329,739,613 |
| **EncString** - string | 368,102 - 13,579,435 |
| **EncInt** - int (Similar to **EncLong**) | 14,617,745 - 525,762,355 |
| **EncDouble** - double (Similar to **EncFloat** and **EncDecimal**) | 20,719,376 - 329,739,613 |
| **EncString** - string | 373,450 - 13,579,435 |

This is the size of each EncType compared to its normal type
| Types | Size in bytes |
Expand All @@ -116,7 +116,7 @@ It may seem heavy but it's **very light** considering its **simple** and **effic
In a game where you want to have an encrypted "**score**" for the player, you can just **switch** the score's variable **type** from an **int** to an **EncInt**.
They **work** the same, **behave** the same, and have the same **methods** and **functionality**.
How many time you change the score variable? How many variables you want to be encrypted?
Even if you'll have **100 encrypted variables** that you want to change **at once** (it is probably unnecessary to have all of them enc), you can do it and you'll have exactly the same **framerate**. It is a **very light** encryption solution.
Even if you'll have **10,000,000 encrypted variables** that you want to change **at once** (it is probably unnecessary to have all of them enc), you can do it and you'll have exactly the same **framerate**. It is a **very light** encryption solution.

### Example of usage:
I **opened** the application from the "**Benchmark**" folder.
Expand All @@ -131,7 +131,7 @@ I chose to perform a benchmark of type "**Fastest**".
So I typed **1** and pressed Enter.

![img](https://i.imgur.com/OffKwtz.jpg)
From the **presets** of type "Fastest" I chose to perform the **fourth**.
From the **presets** of type "Fastest" I chose to perform the **fourth**.
The fourth one will perform **10** test, in each test, **100,000** changes.
So I typed **4** and pressed Enter.

Expand All @@ -140,9 +140,12 @@ These are the **results**. It performed **10 tests** on each type.
Each test performed **100,000 changes** to a variable on type **EncString**, then **EncString's first version (0.5.0)**.
It says that the **EncString** type performed **better** by **29.140987%**.
It also says shows the **amount of changes** you can perform **in a second** on each type.
Be aware that the **shortest** benchmarks are the **least accurate**.

### Multiple Choices At Once
### Run benchmark again
You can **run again** the same benchmark by pressing **Space** when the results are shown.
You can also run the previous benchmark again by typing **"p"** or **"prev"**.

### Multiple choices at once
I could perform the same benchmark as before, by inputting all the choices at once.
Before, we typed **"11"**, pressed Enter, then **"1"**, pressed Enter, and then **"4"**, and pressed Enter again.
We can do it faster just by typing **"11 1 4"** (separate each choice with a space) and pressing Enter.
Expand Down

0 comments on commit 7b8b1ee

Please sign in to comment.