Skip to content

Commit 4eaaa0c

Browse files
authored
Drop json-strify (#266)
1 parent a46998f commit 4eaaa0c

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

bench.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ const obj = {
5858

5959
const multiArray = []
6060

61-
const JSTR = require('json-strify')
62-
const JSTRStringify = JSTR(schemaCJS)
63-
const JSTRArray = JSTR(arraySchemaCJS)
64-
const JSTRInstance = JSTR()
65-
6661
const CJS = require('compile-json-stringify')
6762
const CJSStringify = CJS(schemaCJS)
6863
const CJSStringifyArray = CJS(arraySchemaCJS)
@@ -90,9 +85,6 @@ for (i = 0; i < 1000; i++) {
9085
suite.add('FJS creation', function () {
9186
FJS(schema)
9287
})
93-
suite.add('JSTR creation', function () {
94-
JSTR(schemaCJS)
95-
})
9688
suite.add('CJS creation', function () {
9789
CJS(schemaCJS)
9890
})
@@ -105,10 +97,6 @@ suite.add('fast-json-stringify array', function () {
10597
stringifyArray(multiArray)
10698
})
10799

108-
suite.add('json-strify array', function () {
109-
JSTRArray(multiArray)
110-
})
111-
112100
suite.add('compile-json-stringify array', function () {
113101
CJSStringifyArray(multiArray)
114102
})
@@ -121,10 +109,6 @@ suite.add('fast-json-stringify long string', function () {
121109
stringifyString(str)
122110
})
123111

124-
suite.add('json-strify long string', function () {
125-
JSTRInstance(str)
126-
})
127-
128112
suite.add('compile-json-stringify long string', function () {
129113
CJSStringifyString(str)
130114
})
@@ -137,10 +121,6 @@ suite.add('fast-json-stringify short string', function () {
137121
stringifyString('hello world')
138122
})
139123

140-
suite.add('json-strify short string', function () {
141-
JSTRInstance('hello world')
142-
})
143-
144124
suite.add('compile-json-stringify short string', function () {
145125
CJSStringifyString('hello world')
146126
})
@@ -153,10 +133,6 @@ suite.add('fast-json-stringify obj', function () {
153133
stringify(obj)
154134
})
155135

156-
suite.add('json-strify obj', function () {
157-
JSTRStringify(obj)
158-
})
159-
160136
suite.add('compile-json-stringify obj', function () {
161137
CJSStringify(obj)
162138
})

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"benchmark": "^2.1.4",
3434
"compile-json-stringify": "^0.1.2",
3535
"is-my-json-valid": "^2.20.0",
36-
"json-strify": "^0.1.7",
3736
"long": "^4.0.0",
3837
"moment": "^2.24.0",
3938
"pre-commit": "^1.2.2",

0 commit comments

Comments
 (0)