Mscript update #1

Merged
sixteenmillimeter merged 21 commits from mscript into master 2018-06-17 03:25:21 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 8b08c35b96 - Show all commits

View File

@ -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++) {