Azure functions are slow -


i’m testing cpu performance of functions, made function finds prime numbers in number. triggered azure service bus. on local machine runs in 350ms.

the function, when running in consumption plan, takes around 1000ms. when batch send 100 messages function, scale around 16 instances, performance of each function decreases considerably between 3000-7000ms.

when trying standard service plan 4 cores, performance better, not much. still considerably slower laptop. guy here has similar issue.

is performance/scaling expected functions? e.q. not great fit batch processing of cpu intensive methods?

would azure batch better fit?

i don't know exact specification of hardware functions running on, can assume each instance of consumption plan low-profile single-core vm. if need run cpu-intensive latency-critical workload, that's not match.

your local machine faster instances, that's 350ms vs. 1000ms difference comes from.

the decrease 3000-7000ms related fact multiple executions of functions running @ same time on same instance. competing cpu, slowing each other down. pure cpu-bound workloads, might better off setting "maxconcurrentcalls": 1 in host.json.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -