I am wondering : are Google Apps Script Servers not as powerful as one would expect or is it just my PC that is very powerful?
The calculation of that expression probably took about the same time on Google's machines as it did locally on your machine.What you did not factor into your calculations is latency - the time it takes for your request to reach google's servers and for the response to be returned to your client browser.Latency can vary widely depending on your location relative to the google servers available in your region.
But in all fairness, the current implementation of Apps Script is based on Rhino, an old javascript engine. With the upcoming V8 engine upgrade App Script is expected to execute up to 20 times faster as stated in 2017's Google I/O announcement.
Riël Notermans
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/dc041121-ff39-46df-9642-7884b0b3f062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
function speedTest() { var before, after, result; before = Date.getNow(); result = Math.pow(999, 99); after = Date.getNow(); Logger.log("Result = %s", result.toFixed()); Logger.log("Before = %sms, After = %sms", before.toFixed(), after.toFixed()); Logger.log("Time elapsed = %sms", (after - before));}
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/7b307b4e-e5f0-4c28-afa6-f82b0597d715%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-script-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/efcfa3a3-0250-44ef-8849-f7442290c645%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CANijH0XsTAfdi2Jjq5nZs8tjayovomGS%3DuSFnV3kdZz39wzTOQ%40mail.gmail.com.