Skip to content

Instantly share code, notes, and snippets.

View gonzalobf's full-sized avatar

Gonzalo Bella gonzalobf

  • London / Bilbao
View GitHub Profile
@gonzalobf
gonzalobf / gen_udp_benchmark.erl
Last active January 19, 2023 09:48
gen_udp:send benchmark
-module(gen_udp_benchmark).
% gen_udp:send benchmark
%
% This set of benchmarks runs gen_udp:send with a number of different values and
% configurations. It demonstrates that the time taken to run gen_udp:send changes
% depending on the number of messages the caller has in its queue.
%
% During each gen_udp execution:
% - no more messages are added to the caller's queue
% - the time taken to execute gen_udp:send remains constant when running in a