benchmarker 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: benchmarker
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - makoto kuwata
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-02 00:00:00 +09:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: |
23
+ Benchmarker is a small utility for benchmarking.
24
+
25
+ Quick Example (ex0.rb):
26
+
27
+ require 'rubygems'
28
+ require 'benchmarker'
29
+
30
+ Benchmarker.new(:width=>20, :loop=>100*1000, :cycle=>5, :extra=>1) do |bm|
31
+ range = 1..1000
32
+ bm.task("each") do
33
+ arr = []
34
+ range.each {|n| arr << n }
35
+ end
36
+ bm.task("collect") do
37
+ arr = range.collect {|n| n }
38
+ end
39
+ bm.task("inject") do
40
+ arr = range.inject([]) {|a, n| a << n; a }
41
+ end
42
+ end
43
+
44
+ email: kwa(at)kuwata-lab.com
45
+ executables: []
46
+
47
+ extensions: []
48
+
49
+ extra_rdoc_files: []
50
+
51
+ files:
52
+ - test/benchmarker_test.rb
53
+ - test/oktest.rb
54
+ - examples/bench_loop.rb
55
+ - examples/bench_require.rb
56
+ - CHANGES.txt
57
+ - setup.rb
58
+ - benchmarker.gemspec
59
+ has_rdoc: true
60
+ homepage: http://github.com/kwatch/benchmarker/
61
+ licenses: []
62
+
63
+ post_install_message:
64
+ rdoc_options: []
65
+
66
+ require_paths:
67
+ - lib
68
+ required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ hash: 3
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ requirements: []
87
+
88
+ rubyforge_project: benchmarker
89
+ rubygems_version: 1.6.0
90
+ signing_key:
91
+ specification_version: 3
92
+ summary: a small utility for benchmarking
93
+ test_files:
94
+ - test/benchmarker_test.rb