微软 .NET 开发团队的工程师 Stephen Toub 发表博客《Performance Improvements in .NET 8》,详细介绍了 .NET 8 中的性能改进。
介绍了 .NET 8 的性能表现,包括 JIT、原生 AOT、VM、GC、Mono、线程、文件 I/O、网络、JSON 处理、日志等。
.NET 7 was super fast. .NET 8 is faster.
Table of Contents
- Benchmarking Setup
- JIT
- Tiering and Dynamic PGO
- Vectorization
- Branching
- Bounds Checking
- Constant Folding
- Non-GC Heap
- Zeroing
- Value Types
- Casting
- Peephole Optimizations
- Native AOT
- VM
- GC
- Mono
- Threading
- [ThreadStatic]
- ThreadPool
- Tasks
- Parallel
- Reflection
- Exceptions
- Primitives
- Enums
- Numbers
- DateTime
- Guid
- Random
- Strings, Arrays, and Spans
- UTF8
- ASCII
- Base64
- Hex
- String Formatting
- Spans
- SearchValues
- Regex
- Hashing
- Initialization
- Analyzers
- Collections
- General
- List
- LINQ
- Dictionary
- Frozen Collections
- Immutable Collections
- BitArray
- Collection Expressions
- File I/O
- Networking
- Networking Primitives
- Sockets
- TLS
- HTTP
- JSON
- Cryptography
- Logging
- Configuration
- Peanut Butter
- What’s Next?
.NET 8 已进入 RC 阶段,有兴趣可以下载体验:https://dotnet.microsoft.com/download/