我很喜欢 .NET 4.7.2 上的 System.Numerics.Vector。作为第一次尝试,我编写了一个基本函数来识别 ASCII 字符串中是否存在空格。我实现了该功能的三个版本:
- LINQ,
- 经典的 for 循环和
- 矢量化版本(SIMD)。
我很惊讶地看到矢量化版本比经典的 for 循环慢得多。
BenchmarkDotNet=v0.12.1, OS=Windows 10
Intel Core i7-8650U CPU 1.90GHz (Kaby Lake R), 1 CPU, 8 logical and 4 physical cores
[Host] : .NET Framework 4.8 (4.8.4180.0), X64 RyuJIT
Job-AWDTWU : .NET Framework 4.8 (4.8.4180.0), X64 RyuJIT
Jit=RyuJit Platform=X64 Runtime=.NET 4.7.2
| Method | Mean | Error | StdDev | Median | Ratio | RatioSD | Gen 0 | Gen 1 | Gen 2 | Allocated |
|----------------------- |----------:|---------:|----------:|----------:|------:|--------:|------:|------:|------:|----------:|
| HasWhiteSpacesWithSimd | 35.99 us | 1.038 us | 2.928 us | 35.14 us | 0.17 | 0.02 | - | - | - | - |
| HasWhiteSpacesWithLoop | 17.00 us | 0.335 us | 0.586 us | 17.10 us | 0.08 | 0.00 | - | - | - | - |
| HasWhiteSpacesWithLinq | 220.59 us | 4.408 us | 10.896 us | 220.55 us | 1.00 | 0.00 | - | - | - | 966 B |
下面是我对矢量化版本的实现。
public static class StringExtensions
{
static Vector<byte> spaces = new Vector<byte>(Convert.ToByte(' '));
public static bool HasWhiteSpaces(this string s)
{
const int registersize = 32;
if (s == null)
{
return false;
}
int pos = 0;
byte[] bytes = ArrayPool<byte>.Shared.Rent(32);
while (pos < s.Length)
{
Encoding.UTF8.GetBytes(s, pos, registersize, bytes, 0);
Vector<byte> v = new Vector<byte>(bytes);
bool foundAnySpaces = Vector.EqualsAny(v, spaces);
pos += registersize;
if (foundAnySpaces)
{
ArrayPool<byte>.Shared.Return(bytes);
return true;
}
}
ArrayPool<byte>.Shared.Return(bytes);
return false;
}
}
难道我做错了什么?在这一点上,我假设经典的 for 循环版本由于 CPU 缓存而更快,但我原以为使用矢量版本我会得到适度的加速。
这是带有基准的完整代码。
using System;
using System.Buffers;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Security.Policy;
using System.Text;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Environments;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Validators;
namespace ConsoleApp3
{
class Program
{
static void Main(string[] args)
{
BenchmarkRunner
.Run<Simd>(
DefaultConfig.Instance
.AddJob(Job.Default.WithRuntime(ClrRuntime.Net472).WithPlatform(Platform.X64).WithJit(Jit.RyuJit))
.AddValidator(ExecutionValidator.FailOnError));
}
}
[MemoryDiagnoser]
public class Simd
{
public string[] lines = new[] {
@"CVN7OINF&KN4QTV/WZE1SHG/T\04LXON2S985XG73RBH3BO\&9/FDL/7PQNPVV6P9AC/W0E&TK\AG&GSX14PZIJQVBSPJ3LHXZL3\ROL4\Z6N91PK8564R214YOVH222\4PU1PTFMTY1VPDZMDFO\RPG9W\NC6DCJ98WTG17OZUK6AFOV2IEWN4TOJXEQGDTPVSZUTFFOLAM/FN8RX4MX&S8FPHKWXQHVA8KVT7CXC2LNRVJ81Z6P39QDXTEL7W48539JCN\222UJHU06\O7/W55ERH\&232T\QV1Y&5O1E0BOH8C6LNS27L&\458O\&\&BL3\\H&VSIRF32KL8GRQK3DEW36H/A2E1CN9FE7DO/KY77HBUXS5VV2KHZPIN4YRTNR0POG4MNBNTSK2V4ZMV/WFNC1S1Z2WL5FTQUZGR0SHUP42P0ZVFL9V3LMMZ0DZXSB0M3MBFS87ROY\L&DBAHRA9W3EHMU3X6WBNDPYOXQZPBDP0OB0XCZQAB43AH75\FKY4WXIWRZP45X7SOR5L7GUGGBMLZYG3X0J4SXD35DFPKZIQ/KZ3BUE&2SYVL9/6SZGENDA3NCS3AF8U68OO&Q2DWKB&&VS9FL9YSDC6J8P\BN\WWE1PVV7C9DUDBA45XWX2JKB26UFDA3CJLRQ86CNXR61PW\4IEXOR2JNMC&WAQ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VAY2V083FZCDAK1H45BVE5GMA/UQNFAXQM9JBLTVBLLGVN9EKI5M1X237M1XFSP&YRZ1OSFSLTT5U&30AQFEM085XGO2X9PW9LVD0I24DNBID9J8VBW1MK0/V7DIEP8PD/9IR0A51OB&Z0109SHVM0KYYXU6ETZ0RYEG&AR8B4A/I0K7FPLYINCQ0KX6FH0H1OUBWV19BLUV0MQ/M002IAREV1T2QY37E6J7FJLW1PX96U2N7ZTST\&09QS8C&TPVZQ6CV5DODA5PULA\F73ELOG7V/23QU28INGD8KL7PDP/GKOFR99E2KKLK&UYCN\VK/HHF/C7W92I\I1KVXLTYYG/D7593Z4CE60JCHAU7CV6VCMCLJDSBS/Y3KDKEGD9EZDFUSINX3YVDMOAV3YUWLAY8BS5E2Q1\Y18\HU6B28K6PVQ9C2NVWM5YRJT&PJ7N/WRYSCNJ4T6Q25TTB8BACGPL8KU\B6YTB/95D5QAOE3DTP8Z3A\UH6K4HF2IUOH\7NO590PISBZ\PM5TO7IB7EMI0EY/DIS&94IFAD3CX2",
};
[GlobalSetup]
public virtual void Setup()
{
if (!Vector.IsHardwareAccelerated)
{
throw new Exception("Vector.IsHardwareAccelerated == false! Check your build settings!");
}
}
[Benchmark]
public void HasWhiteSpacesWithSimd()
{
int count = 0;
foreach (string line in lines)
{
bool hasWhiteSpace = line.HasWhiteSpaces();
if (hasWhiteSpace) count++;
}
}
[Benchmark]
public void HasWhiteSpacesWithLoop()
{
int count = 0;
foreach (string line in lines)
{
bool hasWhiteSpace = line.HasWhiteSpacesLoop();
if (hasWhiteSpace) count++;
}
}
[Benchmark(Baseline = true)]
public void HasWhiteSpacesWithLinq()
{
int count = 0;
foreach (string line in lines)
{
bool hasWhiteSpace = line.HasWhiteSpacesLinq();
if (hasWhiteSpace) count++;
}
}
}
public static class StringExtensions
{
static Vector<byte> spaces = new Vector<byte>(Convert.ToByte(' '));
public static bool HasWhiteSpaces(this string s)
{
const int registersize = 32;
if (s == null)
{
return false;
}
int pos = 0;
byte[] bytes = ArrayPool<byte>.Shared.Rent(32);
while (pos < s.Length)
{
Encoding.UTF8.GetBytes(s, pos, registersize, bytes, 0);
Vector<byte> v = new Vector<byte>(bytes);
bool foundAnySpaces = Vector.EqualsAny(v, spaces);
pos += registersize;
if (foundAnySpaces)
{
ArrayPool<byte>.Shared.Return(bytes);
return true;
}
}
ArrayPool<byte>.Shared.Return(bytes);
return false;
}
public static bool HasWhiteSpacesLoop(this string s)
{
if (s == null)
{
return false;
}
for (int i = 0; i < s.Length; i++)
{
if (s[i] == ' ')
{
return true;
}
}
return false;
}
public static bool HasWhiteSpacesLinq(this string s)
{
if (s == null)
{
return false;
}
return s.Any(c => c == ' ');
}
}
}