Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 7e29d6d

Browse files
committed
perf fixes
1 parent d75c1dd commit 7e29d6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/perf.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
System.set('module0', System.newModule({}));
88
System.instantiate = function(load) {
99
return {
10-
deps: ['module1'],
10+
deps: ['module' + (load.name.substr(6) - 1)],
1111
execute: function() {
1212
eval(load.source);
1313
return System.newModule({});
@@ -21,7 +21,7 @@
2121
for (var i = 1; i <= 1000; i++)
2222
System.define('module' + i, "function q() {} var p = 5;\n // non-trivial code");
2323
System.import('module1000').then(function() {
24-
document.body.innerHTML = (Date.now() - startTime) + 'ms';
24+
document.body.innerHTML = ((Date.now() - startTime) / 1000) + 'ms per module';
2525
}).catch(function(e) {
2626
setTimeout(function() {
2727
throw e;

0 commit comments

Comments
 (0)