public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/24872] __memmove_avx_unaligned_erms() performs significantly much slower than __memcpy_ssse3()
Date: Thu, 25 Mar 2021 00:05:31 +0000	[thread overview]
Message-ID: <bug-24872-131-PyubAqWGt6@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-24872-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=24872

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
On Intel i7-8559U, for glibc master branch, benchtests/bench-memcpy-large
shows:

Function: memcpy
Variant: large
                                    __memcpy_avx_unaligned_erms __memcpy_ssse3
==============================================================================
    length=65543, align1=0, align2=0:     14301.30          17782.90    
    length=65551, align1=0, align2=3:     15940.10          17913.20    
    length=65567, align1=3, align2=0:     13492.10          17706.70    
    length=65599, align1=3, align2=5:     16658.40          17927.30    
   length=131079, align1=0, align2=0:     30461.70          44844.90    
   length=131087, align1=0, align2=3:     10647.30          12163.80    
   length=131103, align1=3, align2=0:      9425.44          12177.90    
   length=131135, align1=3, align2=5:     11126.40          12181.70    
   length=262151, align1=0, align2=0:     23470.20          39790.60    
   length=262159, align1=0, align2=3:     33363.40          33786.50    
   length=262175, align1=3, align2=0:     23122.00          29927.70    
   length=262207, align1=3, align2=5:     25862.10          28582.20    
   length=524295, align1=0, align2=0:     45083.10          55485.80    
   length=524303, align1=0, align2=3:     47938.20          54088.40    
   length=524319, align1=3, align2=0:     42350.10          51983.70    
   length=524351, align1=3, align2=5:     45029.20          52464.20    
  length=1048583, align1=0, align2=0:     88527.90         101156.00    
  length=1048591, align1=0, align2=3:     93855.80         100754.00    
  length=1048607, align1=3, align2=0:     94034.90         100673.00    
  length=1048639, align1=3, align2=5:     90740.50         103256.00    
  length=2097159, align1=0, align2=0:    185803.00         193467.00    
  length=2097167, align1=0, align2=3:    187839.00         211012.00    
  length=2097183, align1=3, align2=0:    186758.00         195055.00    
  length=2097215, align1=3, align2=5:    190751.00         195920.00    
  length=4194311, align1=0, align2=0:    374530.00         391675.00    
  length=4194319, align1=0, align2=3:    378556.00         395988.00    
  length=4194335, align1=3, align2=0:    376987.00         396840.00    
  length=4194367, align1=3, align2=5:    380713.00         399326.00    
  length=8388615, align1=0, align2=0:   1248790.00        1296470.00    
  length=8388623, align1=0, align2=3:    924123.00        1011000.00    
  length=8388639, align1=3, align2=0:    910170.00         926244.00    
  length=8388671, align1=3, align2=5:    915979.00        1011690.00    
 length=16777223, align1=0, align2=0:   2119530.00        2228360.00    
 length=16777231, align1=0, align2=3:   2123510.00        2321720.00    
 length=16777247, align1=3, align2=0:   2092680.00        2231230.00    
 length=16777279, align1=3, align2=5:   2121050.00        2280890.00    
 length=33554439, align1=0, align2=0:   4881620.00        4770780.00    
 length=33554447, align1=0, align2=3:   4634040.00        4795500.00    
 length=33554463, align1=3, align2=0:   4599820.00        4676770.00    
 length=33554495, align1=3, align2=5:   4638870.00        4841840.00

avx_unaligned_erms is faster than ssse3

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-03-25  0:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-24872-131@http.sourceware.org/bugzilla/>
2020-05-30 15:30 ` jan at jki dot io
2021-03-24 23:46 ` hjl.tools at gmail dot com
2021-03-25  0:05 ` hjl.tools at gmail dot com [this message]
2021-03-25  2:42 ` skpgkp2 at gmail dot com
2021-03-25  3:00 ` skpgkp2 at gmail dot com
2021-03-25  5:53 ` skpgkp2 at gmail dot com
2021-03-25 13:04 ` hjl.tools at gmail dot com
2021-03-25 13:05 ` hjl.tools at gmail dot com
2021-03-25 13:16 ` skpgkp2 at gmail dot com
2021-03-25 16:28 ` skpgkp2 at gmail dot com
2021-03-25 16:59 ` skpgkp2 at gmail dot com
2021-05-29  5:54 ` gouhaojake at 163 dot com
2021-05-30  1:24 ` gouhaojake at 163 dot com
2021-05-30  1:40 ` hjl.tools at gmail dot com
2021-05-30  1:41 ` hjl.tools at gmail dot com
2021-05-30  5:07 ` gouhaojake at 163 dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-24872-131-PyubAqWGt6@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).