REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.81 KB
Close
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Benchmark/bmbm-i.yaml
Text
Base64
--- !ruby/object:RI::MethodDescription aliases: [] block_params: job comment: - !ruby/struct:SM::Flow::P body: "Sometimes benchmark results are skewed because code executed earlier encounters different garbage collection overheads than that run later. #bmbm attempts to minimize this effect by running the tests twice, the first time as a rehearsal in order to get the runtime environment stable, the second time for real. <tt>GC.start</tt> is executed before the start of each of the real timings; the cost of this is not included in the timings. In reality, though, there's only so much that #bmbm can do, and the results are not guaranteed to be isolated from garbage collection and other effects." - !ruby/struct:SM::Flow::P body: "Because #bmbm takes two passes through the tests, it can calculate the required label width." - !ruby/struct:SM::Flow::VERB body: " require 'benchmark'\n\n array = (1..1000000).map { rand }\n\n Benchmark.bmbm do |x|\n x.report("sort!") { array.dup.sort! }\n x.report("sort") { array.dup.sort }\n end\n" - !ruby/struct:SM::Flow::P body: <em>Generates:</em> - !ruby/struct:SM::Flow::VERB body: " Rehearsal -----------------------------------------\n sort! 11.928000 0.010000 11.938000 ( 12.756000)\n sort 13.048000 0.020000 13.068000 ( 13.857000)\n ------------------------------- total: 25.006000sec\n\n user system total real\n sort! 12.959000 0.010000 12.969000 ( 13.793000)\n sort 12.007000 0.000000 12.007000 ( 12.791000)\n" - !ruby/struct:SM::Flow::P body: "#bmbm yields a Benchmark::Job object and returns an array of Benchmark::Tms objects." full_name: Benchmark#bmbm is_singleton: false name: bmbm params: (width = 0) {|job| ...} visibility: public
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Job
DIR
-
drwxr-xr-x
2024-03-03 22:50:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Report
DIR
-
drwxr-xr-x
2024-03-03 22:50:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Tms
DIR
-
drwxr-xr-x
2024-03-03 22:50:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
benchmark-i.yaml
2.06 KB
lrw-r--r--
2023-07-26 13:47:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bm-i.yaml
1.06 KB
lrw-r--r--
2023-07-26 13:47:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bmbm-i.yaml
1.81 KB
lrw-r--r--
2023-07-26 13:47:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-Benchmark.yaml
5.44 KB
lrw-r--r--
2023-07-26 13:47:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
measure-i.yaml
305 B
lrw-r--r--
2023-07-26 13:47:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
realtime-i.yaml
283 B
lrw-r--r--
2023-07-26 13:47:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).