bench_test 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31cfc0040c7d7e523612f3052054fc128b983463
4
- data.tar.gz: f802c4eeeae1df65921d0ea4ffaa5ef0a4c8fb62
3
+ metadata.gz: 0902032a61c27eea16864bf4915ca25b9e384f2a
4
+ data.tar.gz: 996d2f4c9caed586a2fa0b962411e43893a389f9
5
5
  SHA512:
6
- metadata.gz: 3f7191698d84202ec988ff19cfccbbbd7eb0c97a57e0a58ff32a9670e6589481a95fc1735a2fc3948f2569730092957dd346d52acda6fb288f6dce563f64c1b0
7
- data.tar.gz: 7bd3d825a55f85595720823c35d8d2d3c4215bff31cc3c1d2c3f40a43b838bdcd66e8c413615662dfd7cd6d7deb3a41707d3593149d057ed875ee0385680c662
6
+ metadata.gz: 2bda6d147b09804621a8c0c0b3a13ea5682fea0c5a31b44a13cbc085e8e6974857c77ac75e48899a3afc3246f5b7dd99fc36ee92b1ad1386026f24b1f646ec66
7
+ data.tar.gz: 4888de54615cc4852275df2fb5d5b20d6f0397826847a8fa5bbfb623cc134050381039310417ba6b67cfe3b3657ac6ac2df73a1abd36d0cff20094b71b1334ab
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # BenchTest
2
2
 
3
- TODO: Write a gem description
3
+ Testing performance of methods
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,21 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Available methods
22
+
23
+ #### assert_comparison
24
+
25
+ You can use this for testing time evaluate for two operation. And check operation speed helpful operators :> :< :== :>= :<= '!='.to_sym
26
+
27
+ BenchTest.assert_comparison proc { code.. }, :>, proc { code .. }
28
+
29
+ #### range
30
+
31
+ Use this for testing range with time min and max to running code block
32
+
33
+ BenchTest.range min: 1.0e-10, max: 0.0010, name: 'Fixture X' do
34
+ code ..
35
+ end
22
36
 
23
37
  ## Contributing
24
38
 
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module BenchTest
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bench_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Krainik
@@ -65,7 +65,9 @@ files:
65
65
  - README.md
66
66
  - Rakefile
67
67
  - bench_test.gemspec
68
+ - lib/.bench_test.rb.swp
68
69
  - lib/bench_test.rb
70
+ - lib/bench_test/.version.rb.swp
69
71
  - lib/bench_test/version.rb
70
72
  homepage: ''
71
73
  licenses: