benchmark.pl

来自「Perl Best Practices the source code」· PL 代码 · 共 19 行

PL
19
字号
#! /usr/bin/perl --################################################################################   Filter script (Recommended) from Appendix C of "Perl Best Practices"   ####     Copyright (c) O'Reilly & Associates, 2005. All Rights Reserved.      ####  See: http://www.oreilly.com/pub/a/oreilly/ask_tim/2001/codepolicy.html  ################################################################################use Perl6::Slurp; my $selection = slurp; print <<"END_REPLACEMENT"use Benchmark qw( cmpthese );cmpthese -10, {    $selection};END_REPLACEMENT

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?