From 8b08c35b960c65ab04a5268e37d437ae16a6ea7f Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Sat, 16 Jun 2018 19:30:15 -0400 Subject: [PATCH] Update profile script to use the new version of the mscript lib --- app/test/mscript_profile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/mscript_profile.js b/app/test/mscript_profile.js index 47f9c22..4f84c45 100644 --- a/app/test/mscript_profile.js +++ b/app/test/mscript_profile.js @@ -3,7 +3,8 @@ //the purpose of this script is to test the performance of the //mscript rewrite against the original -const mscript = require('../lib/mscript'); +const Mscript = require('../lib/mscript'); +const mscript = new Mscript(); const mscriptOld = require('../lib/mscript/index.old.js'); mscriptOld.state_clear(); @@ -16,7 +17,7 @@ for (let i = 0; i < 100000; i++) { console.timeEnd('mscript old str_to_arr') -mscript.state_clear(); +mscript.clear() console.time('mscript str_to_arr'); for (let i = 0; i < 100000; i++) {