newLISP in a browser

Started by Lutz, January 02, 2014, 01:43:18 PM

Previous topic - Next topic

HPW

#105
Hello,



Also news on Edge compatibility:



On the WIN 10 laptop with latest updates and Edge 41



(module "qa-bench")



With javascript:

http://ferrydb.nl/newlisp/">http://ferrydb.nl/newlisp/



>>>>> total time: 3550

>>>>> Performance ratio: 5.98 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



With web-assembly:

http://ferrydb.nl/newlisp-wa/">http://ferrydb.nl/newlisp-wa/



>>>>> total time: 3968

>>>>> Performance ratio: 6.66 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Note: the only browser where web-assembly is slower than javascript.

But it works now with wa. A little faster in javascript than the last test.



Regards
Hans-Peter

HPW

#106
Hello,



Firefox Quantum 58.0 getting even better:

Asus Eee Slate

i5 U470 1.33 Ghz 4 Gb



With javascript:

http://ferrydb.nl/newlisp/">http://ferrydb.nl/newlisp/

>>>>> total time: 1591

>>>>> Performance ratio: 2.79 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



With web-assembly:

http://ferrydb.nl/newlisp-wa/">http://ferrydb.nl/newlisp-wa/

>>>>> total time: 1405

>>>>> Performance ratio: 2.49 (1.0 on MacOSX 10.9, 2.3GHz Intel Core i5, newLISP v10.6.0-64-bit)



Regards
Hans-Peter

HPW

#107
Hello,



In last test with Google Chrome 67 I noticed that WA is now about 8x slower than JS.

In current Firefox WA is still faster than JS.



I also test a chromium based broser which shows similar Performance like Chrome. Also slow WA.



I wonder if it could be a problem with the used emscripten version.



Latest emscripten: Emscripten: 1.38.4 (June 02, 2018)



Regards
Hans-Peter

HPW

#108
Hello,



Did a bug report about chromes webassembly speed:



https://bugs.chromium.org/p/chromium/issues/detail?id=849098">https://bugs.chromium.org/p/chromium/is ... ?id=849098">https://bugs.chromium.org/p/chromium/issues/detail?id=849098



Regards
Hans-Peter

HPW

#109
Hello,



Seems that they found the bug. Waiting for the fix.



Regards
Hans-Peter

HPW

#110
Hello,



Chrome Version 68.0.3440.75 (Offizieller Build) (64-Bit) is back on full speed with  webassembly.



Firefox 61.0.1 (64-Bit) still a bit faster.



Regards
Hans-Peter

HPW

#111
Hello Lutz,



In the index.html is some code to Show a progressbar for downloading.

I was wondering that it never Show up. Only the Status text changed.



      if (!Module.setStatus.last) Module.setStatus.last = { time: Date.now(), text: '' };
          if (text === Module.setStatus.text) return;
          var m = text.match(/([^(]+)((d+(.d+)?)/(d+))/);
            alert (text);
            alert (m);

The m variable keeps always null so the later if gets never true.



Regards
Hans-Peter

Lutz

#112
The original index.html was taken from some other application dealing with compiled JavaScript. This is probably some left-over unused or only partly used code.

HPW

#113
Hello,

After browser updates on major browsers



CAD-Workstation:

Dell Precision T3610

CPU E5-1620 v2 3.7 GHZ 16GB

Windows performance index 7.7

WIndows 7 PRO SP1



http://www.ferrydb.nl/newlisp/">http://www.ferrydb.nl/newlisp/

http://www.ferrydb.nl/newlisp-wa/">http://www.ferrydb.nl/newlisp-wa/



(module "qa-bench")





Chrome 69 JS



>>>>> total time: 1099



Chrome 69 WA



>>>>> total time: 860





Firefox 62 JS



>>>>> total time: 822



Firefox 62 WA



>>>>> total time: 679



Regards
Hans-Peter

HPW

#114
Hello,



Latest obserations with chrome 72:



http://www.ferrydb.nl/newlisp/">http://www.ferrydb.nl/newlisp/

http://www.ferrydb.nl/newlisp-wa/">http://www.ferrydb.nl/newlisp-wa/



For both url's chrome 72 shows a warning sign in front of the url "Nicht sicher" (german for not secure)

Performance seems slower on both than older versions.

Not nice.



Regards
Hans-Peter

HPW

#115
Hello,



Oops, nothing special with Chrome and newlisp in the browser.

The "Not secure" Display is for every Non-https site.



Regards
Hans-Peter