Skip to content

Commit

Permalink
Fix docs code formatting on faker-comparison page
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed May 22, 2022
1 parent 3a9dde0 commit 6d4ebb8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ All notable changes to this project will be documented in this file.
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and the project versioning adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [1.11.0] - UNRELEASED
## [1.11.0] - 2022-05-22
### Added
- [#122](https://github.com/serpro69/kotlin-faker/pull/122) [core] Add (unique) `numerify`, `letterify`, `bothify` and `regexify` functions through `StringProvider`
- [#129](https://github.com/serpro69/kotlin-faker/pull/129) [core] Update dictionary files, including:
- New data and functions in existing data providers
- New data providers:
- <details><summary>New data providers:</summary>
<p>

- `adjective`
- `australia`
- `bible`
Expand Down Expand Up @@ -39,6 +41,10 @@ and the project versioning adheres to [Semantic Versioning](https://semver.org/s
- `touhou`
- `tron`
- `volleyball`

</p>
</details>

- Updates to existing localized dictionaries
- Especially notable for `fr` and `ja` locales as they now, similarly to `en` locale, contain multiple dict files per locale
- New localized dictionaries for `es-AR`, `lt` and `mi-NZ` locales
Expand Down
10 changes: 6 additions & 4 deletions docs/src/orchid/resources/pages/faker-comparisons.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ So why use this one instead? I've decided to make a comparison between <strong>k

{% info %}
The benchmarks time is an average execution time of 10 consecutive runs on the system with the following specs:
<br>
{% filter compileAs('md') %}
```text
OS: Ubuntu 20.04.4 LTS x86_64
Host: Precision 5530
Expand All @@ -20,9 +20,10 @@ GPU: NVIDIA Quadro P2000 Mobile
GPU: Intel UHD Graphics 630
Memory: 21277MiB / 31728MiB
```
<br>
{% endfilter %}

Each run includes creating a new Faker instance and generating a 1_000_000 values with the function returning a person's full name:
<br>
{% filter compileAs('md') %}
```kotlin
fun main() {
List(10) { it }.sumOf {
Expand All @@ -33,6 +34,7 @@ fun main() {
} / 10
}
```
{% endfilter %}
<br>
<i>Note: benchmarks for `blocoio/faker` could not be done due to unexpected exceptions coming from the lib, benchmarks for `moove-it/fakeit` could not be done due to android dependencies in the lib</i>
{% endinfo %}
Expand Down Expand Up @@ -136,7 +138,7 @@ fun main() {
<td><strong>Actively maintained</strong></td>
<td>&#10004;</td>
<td>&#10004;</td>
<td>&#10004;</td>
<td>&#10007;</td>
<td>&#10004;</td>
<td>&#10007;</td>
</tr>
Expand Down

0 comments on commit 6d4ebb8

Please sign in to comment.