---
name: "megaco_codec_mstone2"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:25.2.3+dfsg-1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/megaco_codec_mstone2"
---

# megaco\_codec\_mstone2(3erl)

This module implements a simple megaco codec-based performance tool.

## NAME

megaco\_codec\_mstone2 - This module implements a simple megaco codec-based performance tool.

## DESCRIPTION

This module implements the *mstone2* tool, a simple megaco codec-based performance tool.

The results, the mstone value(s), are written to stdout.

*Note* that this module is *not* included in the runtime part of the application.

## EXPORTS

**start() -\> void()**\
 **start(MessagePackage) -\> void()**\

Types:

MessagePackage = message\_package()\
 message\_package() = atom()\

This function starts the *mstone2* performance test with all codec configs. Processes are created dynamically. Each process make *one* run through their messages (decoding and encoding messages) and then exits. When one process exits, a new is created with the same codec config and set of messages.

The number of messages processed in total (for all processes) is the mstone value.
