<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JavaScript vs Python scripts in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/594322#M3521</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lately, I was wondering about Python and JavaScript performance in terms of computational speed and XSOAR resource use. I'd like to work as efficient as possible and that's the reason I'd like to ask for the XSOAR community thoughts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently working with Python &lt;SPAN&gt;3.11.9 (main, Aug 2 2024, 14:46:25) [GCC 13.2.1 20240309]&lt;/SPAN&gt; (I don't really know what JavaScript version/Node.js version use XSOAR in general).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replicated this video in XSOAR (&lt;A href="https://www.youtube.com/watch?v=Jld0aUQ9LZw" target="_blank" rel="noopener"&gt;Python vs JavaScript - side by side comparison - YouTube&lt;/A&gt;) and I read some papers which speaks about this theme, and everyone tells that JavaScript is faster than Python by far. However, in my tests, Python demonstrated that is ~ 60% faster than Javascript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What r u thoughts? What programming language the community usually use to? Is there an official post about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 07:44:09 GMT</pubDate>
    <dc:creator>SergioPalacios</dc:creator>
    <dc:date>2024-08-09T07:44:09Z</dc:date>
    <item>
      <title>JavaScript vs Python scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/594322#M3521</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lately, I was wondering about Python and JavaScript performance in terms of computational speed and XSOAR resource use. I'd like to work as efficient as possible and that's the reason I'd like to ask for the XSOAR community thoughts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently working with Python &lt;SPAN&gt;3.11.9 (main, Aug 2 2024, 14:46:25) [GCC 13.2.1 20240309]&lt;/SPAN&gt; (I don't really know what JavaScript version/Node.js version use XSOAR in general).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I replicated this video in XSOAR (&lt;A href="https://www.youtube.com/watch?v=Jld0aUQ9LZw" target="_blank" rel="noopener"&gt;Python vs JavaScript - side by side comparison - YouTube&lt;/A&gt;) and I read some papers which speaks about this theme, and everyone tells that JavaScript is faster than Python by far. However, in my tests, Python demonstrated that is ~ 60% faster than Javascript.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What r u thoughts? What programming language the community usually use to? Is there an official post about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 07:44:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/594322#M3521</guid>
      <dc:creator>SergioPalacios</dc:creator>
      <dc:date>2024-08-09T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript vs Python scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/595408#M3556</link>
      <description>&lt;P&gt;Hey there! You can refer to this documentation regarding the python scripting you can use in xsoar. You can use both Javascript and Python but I am not sure we have any performance benchmarks regarding the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.x/Cortex-XSOAR-Python-Development-Quick-Start-Guide/Cortex-XSOAR-Script-Development-Process" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.x/Cortex-XSOAR-Python-Development-Quick-Start-Guide/Cortex-XSOAR-Script-Development-Process&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 00:12:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/595408#M3556</guid>
      <dc:creator>BharathwajTiruputkuzhi</dc:creator>
      <dc:date>2024-08-21T00:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript vs Python scripts</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/595453#M3561</link>
      <description>&lt;P&gt;python will work slower but not because of interpreter but because using docker to execute. I mean any python code will run in docker container and if there is no specific docker containers to reuse in current time it will need some time to spawn one and run the payload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In very general if you have some small code snippet you can write it in JS but otherwise I will prefer python and not because of speed but because it's isolated in container, supports external libs etc.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:38:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/javascript-vs-python-scripts/m-p/595453#M3561</guid>
      <dc:creator>vmikhailov</dc:creator>
      <dc:date>2024-08-21T09:38:32Z</dc:date>
    </item>
  </channel>
</rss>

