░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/promise.rb-0.7.4/benchmark
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: setup.rb
# frozen_string_literal: true require 'promise' require 'benchmark/ips' require 'benchmark/memory' require 'memory_profiler' module PromiseBenchmark module_function # Pass a block which will be benchmarked def benchmark Benchmark.ips { |x| yield(x) } Benchmark.memory { |x| yield(x) } end # Pass a block which will be profiled for memory usage def profile_memory report = MemoryProfiler.report { yield } report.pretty_print end end
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 run.rb
RB
2.6 KB
2023-09-24 03:47
EDIT
📄 setup.rb
RB
466 B
2023-09-24 03:47
EDIT