nu_scripts/stdlib-candidate/tests
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
..
bench.nu improve std bench and add significant-digits (#859) 2024-06-01 04:54:45 -05:00
bulk-rename.nu [stdlib-candidate] Clean up file bulk-rename a little (#798) 2024-03-30 16:19:06 -05:00
math.nu improve std bench and add significant-digits (#859) 2024-06-01 04:54:45 -05:00
mod.nu improve std bench and add significant-digits (#859) 2024-06-01 04:54:45 -05:00
record.nu Refactor stdlib-candidate for nupm (#790) 2024-03-16 13:57:05 +02:00
str_xpend.nu Clean up str append/prepend a little (#797) 2024-03-20 10:46:12 -05:00