{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "运行 BenchmarkDotnet 基准测试\n", "============================" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## 全局设置" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "dotnet_interactive": { "language": "csharp" }, "polyglot_notebook": { "kernelName": "csharp" } }, "outputs": [ { "data": { "text/html": [ "
#!linqify
.The #!linqify
magic command replaces a Microsoft.Data.Analysis.DataFrame
variable with a generated, strongly-typed data frame, allowing the use of LINQ operations over the contained data.
This extension generates Sequence diagrams from csharp code using Mermaid kernel.
\r\n", "#!inspect
magic command.The #!inspect
magic command allows you to see the C# decompilation, IL, and JIT Asm for the code in a C# cell.
#!record
magic command to keep a transcript of the code you run.Once you enable transcripts using #!record
, each code submission (including re-running cells) is recorded in the specified file. The JSON format used is the same format recognized by the .NET Interactive stdio
and http
APIs and can be used to replay an interactive session via automation.