Skip to content

Commit

Permalink
Merge pull request #7 from Muscula/imjv
Browse files Browse the repository at this point in the history
Add is-my-son-valid to benchmarks
  • Loading branch information
Johny Jose committed Jan 31, 2015
2 parents 768ebe3 + 16b54bb commit 704d37a
Show file tree
Hide file tree
Showing 3 changed files with 3,868 additions and 2,187 deletions.
11 changes: 11 additions & 0 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,19 @@ var JsonSchema = require("jsonschema");
var tv4 = require("tv4");
var JsonModel = require('json-model');
var Themis = require('../src/themis');
var imjv = require('is-my-json-valid');


Tester.registerValidator({
name: "is-my-json-valid",
setup: function (schema) {
return imjv(schema);
},
test: function (instance, json, schema) {
return !!instance(json);
}
});

Tester.registerValidator({
name: "themis[minimal]",
setup: function (schema) {
Expand Down
1 change: 1 addition & 0 deletions benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"license": "MIT",
"dependencies": {
"benchmark": "latest",
"is-my-json-valid": "^2.0.3",
"jayschema": "latest",
"jjv": "latest",
"json-model": "latest",
Expand Down
Loading

0 comments on commit 704d37a

Please sign in to comment.