nu_scripts/stdlib-candidate
Maxim Uvarov 5271d68b7a
improve std bench and add significant-digits (#859)
Hi! I propose several changes to `std bench`:
- Remove insignificant precision by default (can be reverted with
`--sign-digits=0`).
- Remove the 'times' field by default (can be returned with
`--list-timings`).
- Add an option to set time units (inactive by default).

For removing insignificant precision, I needed a new command
`significant-digits` which is also included in this PR. This command has
tests.

<img width="747" alt="image"
src="https://github.com/nushell/nu_scripts/assets/4896754/ce98aebe-7c1b-4d8f-b2d0-3282d1ff3883">
<img width="747" alt="image"
src="https://github.com/nushell/nu_scripts/assets/4896754/508fef3e-ba70-40fd-8f9e-82b6ac608485">
<img width="747" alt="image"
src="https://github.com/nushell/nu_scripts/assets/4896754/af755f28-8506-4f4c-8bc2-91b35798855d">
2024-06-01 04:54:45 -05:00
..
std-rfc improve std bench and add significant-digits (#859) 2024-06-01 04:54:45 -05:00
tests improve std bench and add significant-digits (#859) 2024-06-01 04:54:45 -05:00
nupm.nuon Refactor stdlib-candidate for nupm (#790) 2024-03-16 13:57:05 +02:00
README.md Add str append to stdlib-candidate (#626) 2023-09-30 17:13:46 -05:00

std-lib candidate

This folder is where we can add scripts that might want to be in std-lib at some point. It can serve both as a holding place for scripts that are waiting on nushell changes, as well as a place to develop and discuss such scripts.