是否可以将Rust基准测试结果更改为不同的时间单位?

时间:2018-03-13 10:14:40

标签: rust benchmarking

我刚刚运行了一些Rust基准测试,我发现结果总是显示在<link href="https://code.jquery.com/ui/1.12.1/jquery-ui.min.css" rel="stylesheet" /> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> <div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div id="block-panel" class="col-xs-3"> <div class="row"> <div class="col-xs-6"> <div class="block-box"> <h3>Field 1</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 2</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 3</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 4</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 5</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 6</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 7</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 8</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 9</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 10</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 11</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 12</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 13</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 14</h3> </div> </div> <div class="col-xs-6"> <div class="block-box"> <h3>Field 15</h3> </div> </div> </div> </div> <div id="block-fields" class="col-xs-9"> <div class="row"> <div class="col-xs-3"> <div class="area-box"> <h3>Area 1</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 2</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 3</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 4</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 5</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 6</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 7</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 8</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 9</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 10</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 11</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 12</h3> </div> </div> <div class="col-xs-3"> <div class="area-box"> <h3>Area 13</h3> </div> </div> </div> </div> </div> </div> </div>中。是否可以将基准的时间单位更改为其他内容?例如,ns

1 个答案:

答案 0 :(得分:2)

不,这是不可能的。

除非您想编写运行正则表达式的包装脚本并在分割后替换这些数字,否则我怀疑这就是您的意思。

一秒钟内有10 ^ 9纳秒。