Skip to content

Commit

Permalink
chore: bench & doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo082 committed Dec 27, 2024
1 parent 36b24b4 commit cffcd38
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/next-minor.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ The `####` headline should be short and descriptive of the new functionality. In

## New Functions

####
#### `parseHumanDuration` function

## New Features
https://github.com/radashi-org/radashi/pull/332

####
#### `defineHumanQuantityParser` function

https://github.com/radashi-org/radashi/pull/332
11 changes: 11 additions & 0 deletions benchmarks/number/parseHumanDuration.bench.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import * as _ from 'radashi'

describe('parseHumanDuration', () => {
bench('with string', () => {
_.parseHumanDuration('5 minutes')
})

bench('with number', () => {
_.parseHumanDuration(500)
})
})

0 comments on commit cffcd38

Please sign in to comment.