I'm using a 1000-line script with mod_perl, and it makes several queries on a local MySQL server. The whole initialization and db lookup takes less than 10ms.

I didn't do any other performance tests, because it's a single-user server. But I think it will easily survive several calls per second.

A stripped-down version of my script is available here: https://github.com/xlab1/freeswitch_secretary_bug

Also I made a small prototype in Golang as a socket server, and it's promising to be much more scalable: https://github.com/xlab1/go-fs-secretary-prototype

I don't think Javascript compiler is much different in performance from the one of Perl.





On Sep 28, 2014 1:28 PM, "Avi Marcus" <avi@avimarcus.net> wrote:
Hi - I need to do an sql query with some logic and manipulation, and then route a call.

I think it's a bit much to do with mod_odbc_query and the dialplan, so I'll be using mod_lua or mod_v8.

Does anyone have information about the overhead about running a script in either language? I know mod_lua has been the goto scripting language for low overhead, but how does the newer mod_v8 perform? I'd rather use javascript, but only if there isn't a significant performance difference.

Thanks,
-Avi Marcus

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org