From: Iskren Chernev Date: Fri, 24 Apr 2020 17:56:41 +0000 (+0300) Subject: [benchmark] Load a missing locale X-Git-Tag: 2.25.0~61^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea03455d8f678ace1cdf231eccf731aa43f86b87;p=thirdparty%2Fmoment.git [benchmark] Load a missing locale --- diff --git a/benchmarks/load-missing.js b/benchmarks/load-missing.js new file mode 100644 index 000000000..c18e92e4c --- /dev/null +++ b/benchmarks/load-missing.js @@ -0,0 +1,13 @@ +var Benchmark = require('benchmark'), + moment = require("./../moment.js"); + +module.exports = { + name: 'load missing locale', + tests: [{ + fn: function() { + // falls back to en + moment.locale('en-US'); + }, + async: true, + }], +};