Skip to main content

I am testing out code by Zapier for the first time just to learn how to use it.  The javascript code I used in the “code by Zapier” step was a single line just 65 characters long:

output = u{firstThreeLetters: inputData.subject.substring(0,3)}];

When I tested the code the runtime_meta showed that the value for memory_used_mb was 62.  My question is this:
What is the unit of measure for the 62?  Is it Megabyes as the name implies or is it actually Kilobytes?  Reason tells me that for the small amount of code I wrote, the unit of measure is most likely Kilobytes.  Can anybody confirm that it actually is Kilobytes?  Is there any documentation saying what the unit of measure is?

 

Thanks ahead of time.

Hi @cagbelt 

Good question.

The environment in which your Code steps run (AWS Lambda) has an I/O limit of 6MB.

 

This is what ChatGPT returned.

 


Thanks for your reply.  As I reread my question I realize that the kilobyte unit is probably too big to be reasonable.  I think the unit of measure for the memory_used_mb value is actually bytes, not kilobytes.


@cagbelt 

For context, I’ve written Code steps with 100s of lines of code and it executes without issue.


Thank you very much, Troy.  That helps.