Skip to content

Commit db4b251

Browse files
benchmarks: add date/time test cases (#429)
1 parent e3b6f0d commit db4b251

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

benchmark/bench.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ const benchmarks = [
6363
},
6464
input: 42
6565
},
66+
{
67+
name: 'formatted date-time',
68+
schema: {
69+
type: 'string',
70+
format: 'date-time'
71+
},
72+
input: new Date()
73+
},
6674
{
6775
name: 'formatted date',
6876
schema: {
@@ -71,6 +79,14 @@ const benchmarks = [
7179
},
7280
input: new Date()
7381
},
82+
{
83+
name: 'formatted time',
84+
schema: {
85+
type: 'string',
86+
format: 'time'
87+
},
88+
input: new Date()
89+
},
7490
{
7591
name: 'short array of numbers',
7692
schema: {

0 commit comments

Comments
 (0)