V
主页
如何提高Rust程序性能
发布人
转载自:https://www.youtube.com/watch?v=2IHPvPmzS8g Welcome back to KittyCAD's Rust Club! Today we'll learn how to measure and improve your code's performance. Rust has two great tools for measuring your code's speed: 🔷 Write Criterion benchmarks to measure part of your code 🔷 Run the Criterion benchmarks to analyze how long the benchmarked code takes to run 🔷 Use a Flamegraph to visualize how that code is spending its time, and where you should try to improve it. Timestamps: 0:00:00 Intro 0:01:24 Naive, unoptimized parser 0:02:40 Setting up Criterion benchmarks 0:06:56 Running benchmarks 0:09:00 Criterion HTML reports 0:10:25 Measuring throughput with benchmark groups 0:27:21 Using flamegraphs to visualize benchmarks 0:36:58 Switching to a faster hash function 0:47:51 Analyzing performance tradeoffs 0:57:57 Exploring Criterion's codegen 1:01:40 Benchmarking with Hyperfine 1:04:11 Benchmarking different implementations
打开封面
下载高清视频
观看高清视频
视频下载器
Rust 101 速成班: 学习 Rust(6 小时!)+ 19 个练习 从零0到1
Rust 跨平台UI框架 Dioxus
Rust 终端开发之 UI 介绍
Rust初学者容易犯的8个致命错误
我理解的Rust异步编程
Rust 持续集成 & 结合 Gitlab
看看 Rust 编译器的边界情况
Rust 构建器模式 和 类型状态编程
Rust base64 代码演练
了解一波Rust中的Buffer
我关于 Rust 的五个观点
Rust 库之 no_std
Rust 1.79.0 来了
我最喜欢的 Rust 设计模式
Rust 赋能 JavaScript
Rust:聊聊内存管理
2024 Rust课程: 从入门到入门
一次 Rust 和 ZIg 的结合
Wasm 和 微服务
Serverless Data pipelines in Rust
WebAssembly 组件模型
Rust 中的错误处理
Rust 最想要的 feature 来了
在 Rust 环境下构建跨平台的移动 SDK
Rust 创建自己的链接缩短器(适合初学者的项目)
2024要不要开搞Rust?
Rust 迭代器简介
聊聊我关于 Rust 的应用场景
Rust-Serverless 之 wasm-workers-server
使用Rust构建内存分析器
Rust: 聊聊泛型、trait、生命周期
集成 Rust 和 Python 的强大程序
Rust 1.75 发布了
用 Rust 写一个 ChatGPT 聊天机器人
用 Rust 构建一个微服务
用 Rust 构建下一个云计算运行基础单位
Rust 方法重写&高级 trait 使用方法
Rust-事件驱动与Wasm
为什么 JavaScript 生态系统要转换到 Rust?
Rust:如何写好构造函数