[Asterisk-Users] How "expensive" are the different codecs? (Regarding CPU time)

Andrew Aken ajaken at globaleyes.com
Wed Dec 22 21:48:53 MST 2004


We changed from Fedora to Debian and saw the following increase in
performance:
Before:
         G723   GSM  ULAW  ALAW  G726 ADPCM SLINR LPC10 G729A SPEEX  ILBC
   G723     -     -     -     -     -     -     -     -     -     -     -
    GSM     -     -     6     6    15     6     5    22     -     -   192
   ULAW     -   128     -     1    11     2     1    18     -     -   188
   ALAW     -   128     1     -    11     2     1    18     -     -   188
   G726     -   136    10    10     -    10     9    26     -     -   196
  ADPCM     -   128     2     2    11     -     1    18     -     -   188
  SLINR     -   127     1     1    10     1     -    17     -     -   187
  LPC10     -   241   115   115   124   115   114     -     -     -   301
  G729A     -     -     -     -     -     -     -     -     -     -     -
  SPEEX     -     -     -     -     -     -     -     -     -     -     -
   ILBC     -   144    18    18    27    18    17    34     -     -     -

After:
         g723   gsm  ulaw  alaw  g726 adpcm  slin lpc10  g729 speex  ilbc
   g723     -     -     -     -     -     -     -     -     -     -     -
    gsm     -     -     2     2     3     2     1     6     -     -    14
   ulaw     -     3     -     1     3     2     1     6     -     -    14
   alaw     -     3     1     -     3     2     1     6     -     -    14
   g726     -     4     3     3     -     3     2     7     -     -    15
  adpcm     -     3     2     2     3     -     1     6     -     -    14
   slin     -     2     1     1     2     1     -     5     -     -    13
  lpc10     -     4     3     3     4     3     2     -     -     -    15
   g729     -     -     -     -     -     -     -     -     -     -     -
  speex     -     -     -     -     -     -     -     -     -     -     -
   ilbc     -     4     3     3     4     3     2     7     -     -     -


Of course we did also upgrade from a PIII 500 to dual 3 GHz Xeon
processors, but I doubt that had anything to do with it.

el Flynn wrote:

> Michael Vogel wrote:
>
>> Thanks! That helps me a lot. Am I right that this chart is calculated 
>> depending my machine's speed:
>
>
> yes, the numbers will vary depending on your system load.
>
>>
>> #######################################################################
>> zhad*CLI> show translation
>>          Translation times between formats (in milliseconds)
>>           Source Format (Rows) Destination Format(Columns)
>>
>>        G723   GSM  ULAW  ALAW  G726 ADPCM SLINR LPC10 G729A SPEEX  ILBC
>>  G723     -     -     -     -     -     -     -     -     -     -     -
>>   GSM     -     -    13    13    47    15    12    43     -   253   124
>>  ULAW     -    41     -     1    36     4     1    32     -   242   113
>>  ALAW     -    41     1     -    36     4     1    32     -   242   113
>>  G726     -    82    43    43     -    45    42    73     -   283   154
>> ADPCM     -    43     4     4    38     -     3    34     -   244   115
>> SLINR     -    40     1     1    35     3     -    31     -   241   112
>> LPC10     -    58    19    19    53    21    18     -     -   259   130
>> G729A     -     -     -     -     -     -     -     -     -     -     -
>> SPEEX     -    52    13    13    47    15    12    43     -     -   124
>>  ILBC     -    59    20    20    54    22    19    50     -   260     -
>> zhad*CLI>
>> #######################################################################
>>
>> Encoding to speex or ilbc seems to be too heavy for my machine ;-)
>>
>
> hmm.. those numbers look a little... high... does it show the same 
> values when your box is idle? mine gives the following, when there's 
> no traffic going through:
>
> demo*CLI> show translation
>          Translation times between formats (in milliseconds)
>           Source Format (Rows) Destination Format(Columns)
>
>          G723   GSM  ULAW  ALAW  G726 ADPCM SLINR LPC10 G729A SPEEX  ILBC
>    G723     -     -     -     -     -     -     -     -     -     -     -
>     GSM     -     -     2     2     3     2     1     -     -     -     -
>    ULAW     -     4     -     1     3     2     1     -     -     -     -
>    ALAW     -     4     1     -     3     2     1     -     -     -     -
>    G726     -     4     2     2     -     2     1     -     -     -     -
>   ADPCM     -     4     2     2     3     -     1     -     -     -     -
>   SLINR     -     3     1     1     2     1     -     -     -     -     -
>   LPC10     -     -     -     -     -     -     -     -     -     -     -
>   G729A     -     -     -     -     -     -     -     -     -     -     -
>   SPEEX     -     -     -     -     -     -     -     -     -     -     -
>    ILBC     -     -     -     -     -     -     -     -     -     -     -
>
> flynn
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list