jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
<script type="text/javascript" src="https://wzrd.in/standalone/prove-it@0.2.8"></script>
<script type="text/javascript" src="https://wzrd.in/standalone/joi"></script>
<script>
window.prove = proveIt;
window.Joi = joi;
</script>
var doc = { username: 'abc', birthyear: 1994 };
var proveSchema = prove().object({
username: prove().string().alphaNumeric().length(3, 30),
password: prove().string().optional().matches(/[a-zA-Z0-9]{3,30}/),
access_token: prove().optional().try(prove().string(), prove().number()),
birthyear: prove().optional().number().integer().min(1900).max(2013),
email: prove().optional().string().email()
});
var joiSchema = Joi.object().keys({
username: Joi.string().alphanum().min(3).max(30).required(),
password: Joi.string().regex(/[a-zA-Z0-9]{3,30}/),
access_token: [Joi.string(), Joi.number()],
birthyear: Joi.number().integer().min(1900).max(2013),
email: Joi.string().email()
});
Ready to run.
Test | Ops/sec | |
---|---|---|
Prove Build and Test |
| ready |
Joi Build and Test |
| ready |
Prove Test Only |
| ready |
Joi Test Only |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.