1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

perf: O(n) update of position

This commit is contained in:
Kevin Amado 2022-02-27 17:44:37 -05:00
parent 8498ce5a4b
commit 4bcf3acef5
3 changed files with 23 additions and 16 deletions

View file

@ -203,15 +203,22 @@ Please see: [CHANGELOG.md](./CHANGELOG.md).
- BogoMips: 7599.80
- Cache Size: 16384 KB
Using:
```bash
# x86_64-unknown-linux-gnu
$ time alejandra --threads $threads /path/to/nixpkgs
```
Results:
| Logical Cores | Seconds |
| :-----------: | :-----: |
| 1 | 15.1 |
| 2 | 7.9 |
| 4 | 5.4 |
| 8 | 4.1 |
| 16 | 3.6 |
| $threads | Seconds |
| :------: | :-----: |
| 1 | 13.4 |
| 2 | 6.9 |
| 4 | 3.6 |
| 8 | 2.6 |
| 16 | 3.1 |
[^semantic-changes]: The methodology to claim this is: