freevec.org

  • about
  • benchmarks
Home › libfreevec 1.0.4 benchmarks updated!

strncmp()

markos — Tue, 29/01/2008 - 17:56

Description

According to the man page, the strncmp() function is similar to strcmp() except it only compares the first (at most) n characters of s1 and s2. It returns an integer less than, equal to, or greater than zero if s1 (or the first n bytes thereof) is found, respectively, to be less than, to match, or be greater than s2.

Contrary to strcmp(), for some reason this function is not really optimized. However, in libfreevec it was optimised right from the start.

Each CPU in detail:

And for comparison here is the result of the same benchmark run on an Athlon X2 5000 (2.5Ghz), running 32-bit code:

Results/Comments

The comments are the same as in strcmp() but the performance here is even worse for the Athlon X2 than in strcmp(). This really is very bad result.

SIMD

  • AltiVec
  • libfreevec
  • Memory
‹ strlen() up strncpy() ›
  • Login to post comments

Primary links

  • About
    • History of libfreevec
  • Benchmarks
    • libfreevec

Search

User login

  • Request new password

Popular tags

Addition Algorithms AltiVec ARM Benchmarking float Inverse libfreevec Matrix Memory Multiply NEON reference Scale SSE String searching Subtraction Translate Transpose Tutorial
more tags

Please donate to libfreevec to ensure its continuing development! Donations are done via Paypal.





  • about
  • benchmarks

Copyright (c)2008 by CODEX.
Powered by Drupal. Using theme Deco.
All Google charts have been created by the CSV Chart and Chart API Drupal modules.