mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
pixconv: add swizzle_ycc__convert_bgrx_x86_avx2
name old speed new speed delta wuffs_jpeg_decode_19k_8bpp/clang11 365MB/s ± 1% 372MB/s ± 0% +1.77% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_progressive/clang11 241MB/s ± 0% 278MB/s ± 0% +15.49% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_sequential/clang11 477MB/s ± 0% 710MB/s ± 0% +48.91% (p=0.008 n=5+5) wuffs_jpeg_decode_77k_24bpp/clang11 429MB/s ± 0% 603MB/s ± 0% +40.56% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_420/clang11 446MB/s ± 0% 635MB/s ± 0% +42.18% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_444/clang11 644MB/s ± 0% 650MB/s ± 0% +1.06% (p=0.016 n=4+5) wuffs_jpeg_decode_4002k_24bpp/clang11 458MB/s ± 0% 629MB/s ± 0% +37.46% (p=0.008 n=5+5) wuffs_jpeg_decode_19k_8bpp/gcc10 352MB/s ± 0% 364MB/s ± 0% +3.62% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_progressive/gcc10 295MB/s ± 0% 334MB/s ± 0% +13.19% (p=0.008 n=5+5) wuffs_jpeg_decode_30k_24bpp_sequential/gcc10 669MB/s ± 0% 944MB/s ± 0% +41.07% (p=0.008 n=5+5) wuffs_jpeg_decode_77k_24bpp/gcc10 567MB/s ± 0% 769MB/s ± 0% +35.59% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_420/gcc10 605MB/s ± 0% 842MB/s ± 0% +39.07% (p=0.008 n=5+5) wuffs_jpeg_decode_552k_24bpp_444/gcc10 647MB/s ± 0% 661MB/s ± 0% +2.19% (p=0.008 n=5+5) wuffs_jpeg_decode_4002k_24bpp/gcc10 613MB/s ± 0% 849MB/s ± 0% +38.61% (p=0.008 n=5+5)
This commit is contained in:
1 parent
10d4ff7532
commit
4facef4e01
6 files changed
+625
-11
No files matched your search
+17
-11
@@ -125,17 +125,18 @@ func Do(args []string) error {
|
||||
}
|
||||
buf := make(buffer, 0, 128*1024)
|
||||
if err := expandBangInsert(&buf, embedBaseAllImplC.Trim(), map[string]func(*buffer) error{
|
||||
"// ¡ INSERT InterfaceDeclarations.\n": insertInterfaceDeclarations,
|
||||
"// ¡ INSERT InterfaceDefinitions.\n": insertInterfaceDefinitions,
|
||||
"// ¡ INSERT base/all-private.h.\n": insertBaseAllPrivateH,
|
||||
"// ¡ INSERT base/all-public.h.\n": insertBaseAllPublicH,
|
||||
"// ¡ INSERT base/copyright\n": insertBaseCopyright,
|
||||
"// ¡ INSERT base/floatconv-submodule.c.\n": insertBaseFloatConvSubmoduleC,
|
||||
"// ¡ INSERT base/intconv-submodule.c.\n": insertBaseIntConvSubmoduleC,
|
||||
"// ¡ INSERT base/magic-submodule.c.\n": insertBaseMagicSubmoduleC,
|
||||
"// ¡ INSERT base/pixconv-submodule-regular.c.\n": insertBasePixConvSubmoduleRegularC,
|
||||
"// ¡ INSERT base/pixconv-submodule-ycck.c.\n": insertBasePixConvSubmoduleYcckC,
|
||||
"// ¡ INSERT base/utf8-submodule.c.\n": insertBaseUTF8SubmoduleC,
|
||||
"// ¡ INSERT InterfaceDeclarations.\n": insertInterfaceDeclarations,
|
||||
"// ¡ INSERT InterfaceDefinitions.\n": insertInterfaceDefinitions,
|
||||
"// ¡ INSERT base/all-private.h.\n": insertBaseAllPrivateH,
|
||||
"// ¡ INSERT base/all-public.h.\n": insertBaseAllPublicH,
|
||||
"// ¡ INSERT base/copyright\n": insertBaseCopyright,
|
||||
"// ¡ INSERT base/floatconv-submodule.c.\n": insertBaseFloatConvSubmoduleC,
|
||||
"// ¡ INSERT base/intconv-submodule.c.\n": insertBaseIntConvSubmoduleC,
|
||||
"// ¡ INSERT base/magic-submodule.c.\n": insertBaseMagicSubmoduleC,
|
||||
"// ¡ INSERT base/pixconv-submodule-regular.c.\n": insertBasePixConvSubmoduleRegularC,
|
||||
"// ¡ INSERT base/pixconv-submodule-x86-avx2.c.\n": insertBasePixConvSubmoduleX86Avx2C,
|
||||
"// ¡ INSERT base/pixconv-submodule-ycck.c.\n": insertBasePixConvSubmoduleYcckC,
|
||||
"// ¡ INSERT base/utf8-submodule.c.\n": insertBaseUTF8SubmoduleC,
|
||||
"// ¡ INSERT vtable names.\n": func(b *buffer) error {
|
||||
for _, n := range builtin.Interfaces {
|
||||
buf.printf("const char wuffs_base__%s__vtable_name[] = "+
|
||||
@@ -387,6 +388,11 @@ func insertBasePixConvSubmoduleRegularC(buf *buffer) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func insertBasePixConvSubmoduleX86Avx2C(buf *buffer) error {
|
||||
buf.writes(embedBasePixConvSubmoduleX86Avx2C.Trim())
|
||||
return nil
|
||||
}
|
||||
|
||||
func insertBaseUTF8SubmoduleC(buf *buffer) error {
|
||||
buf.writes(embedBaseUTF8SubmoduleC.Trim())
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user