Skip to content

Instantly share code, notes, and snippets.

@antonfirsov
Last active October 14, 2018 22:55
Show Gist options
  • Save antonfirsov/09ed56bbbfa5ac8084dcba213a9d2ff8 to your computer and use it in GitHub Desktop.
Save antonfirsov/09ed56bbbfa5ac8084dcba213a9d2ff8 to your computer and use it in GitHub Desktop.
Rgba32ToVector4
BenchmarkDotNet=v0.10.14, OS=Windows 10.0.17134
Intel Core i7-7700HQ CPU 2.80GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores
Frequency=2742187 Hz, Resolution=364.6724 ns, Timer=TSC
.NET Core SDK=2.1.400-preview-009063
[Host] : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT
Clr : .NET Framework 4.7.1 (CLR 4.0.30319.42000), 64bit RyuJIT-v4.7.3190.0
Core : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT
Method | Job | Runtime | Count | Mean | Error | StdDev | Scaled | ScaledSD |
------------------------------------- |----- |-------- |------ |----------:|----------:|----------:|-------:|---------:|
BulkConvertByteToNormalizedFloatFast | Clr | Clr | 2048 | 2.167 us | 0.0346 us | 0.0307 us | 0.31 | 0.00 |
PerElement | Clr | Clr | 2048 | 8.374 us | 0.2067 us | 0.2381 us | 1.18 | 0.03 |
CommonBulk | Clr | Clr | 2048 | 7.075 us | 0.0443 us | 0.0370 us | 1.00 | 0.00 |
OptimizedBulk | Clr | Clr | 2048 | 4.431 us | 0.0729 us | 0.0682 us | 0.63 | 0.01 |
| | | | | | | | |
BulkConvertByteToNormalizedFloatFast | Core | Core | 2048 | 53.833 us | 1.0805 us | 1.0107 us | 7.43 | 0.21 |
PerElement | Core | Core | 2048 | 29.026 us | 0.5591 us | 0.6866 us | 4.00 | 0.13 |
CommonBulk | Core | Core | 2048 | 7.252 us | 0.1437 us | 0.1655 us | 1.00 | 0.00 |
OptimizedBulk | Core | Core | 2048 | 4.283 us | 0.0573 us | 0.0478 us | 0.59 | 0.01 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment