rubystone 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -6
  3. data/bin/rubystone +3 -2
  4. data/rubystone.gemspec +1 -1
  5. metadata +21 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99b5d7d450faa810a8ac1c1c44c54dbb8408e10b
4
- data.tar.gz: 8335e9be046bff037d1142182f072a342714590d
3
+ metadata.gz: 030fdc6ea01c95f50d5acd4f68f20dadb01ecba3
4
+ data.tar.gz: 351377d2a2a6b105870c00750fa1b1e49f31292b
5
5
  SHA512:
6
- metadata.gz: 2e6b75b011d84efb646797268ee2d3af6e96b9a2b6ee303e137db756b2d4af3940b874a81acdff03fff93a0343ca41d899031d7901755f78ecdb5d6eb94cab2d
7
- data.tar.gz: eeb35bc2937974914eec9c43fcfd9f316930203993553034e33ea37cbebdf4b3d8d2f7514334c26e7495101d0b86f8e765cff1841d162be82816119bbc4a0c7a
6
+ metadata.gz: fab7b5626154d5ce717171d80ab62d43da72dd94f6af66dcf9e7d626bda8c459df566fd074f61f2576643c598a6009fe6cf4a77d5ec66834f2b818fb0a5e7bd0
7
+ data.tar.gz: 455fb8693bcad90629cd93ac0f32761242fc1286bbb86fafd029edb990d88fc08b6df745f6a7202c24008816d76f9e205a8bdfce8c34ff9c4c8971c1ac910e2d
data/README.md CHANGED
@@ -1,41 +1,61 @@
1
- # ["RUBYSTONE" Benchmark Program](https://github.com/mdesantis/rubystone)
1
+ # ["RUBYSTONE" Benchmark Script](https://github.com/mdesantis/rubystone)
2
2
 
3
3
  ## Description
4
4
 
5
5
  This is the Ruby porting of the Python [PYSTONE](http://hg.python.org/cpython/file/fc4ef17c7db8/Lib/test/pystone.py) script.
6
6
  It provides a rough benchmark of the Ruby interpreter via the `rubystone` executable.
7
7
 
8
- # Usage
8
+ ## Installation
9
9
 
10
10
  Install the gem:
11
11
 
12
-
13
12
  ```
14
13
  gem install rubystone
15
14
  ```
16
15
 
17
16
  Or clone the project:
18
17
 
19
-
20
18
  ```
21
19
  git clone https://github.com/mdesantis/rubystone
22
20
  ```
23
21
 
24
- Then use the `rubystone` executable (`bin/rubystone` if you cloned the project):
22
+ ## Usage
23
+
24
+ Use the `rubystone` executable (`bin/rubystone` if you cloned the project)
25
+
26
+ ## Output examples
25
27
 
28
+ This are the output on my machine (Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz):
26
29
 
27
30
  ```
31
+ $ ruby -v
32
+ ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux]
28
33
  $ rubystone
29
34
  Rubystone 1.0 cold time for 50000 passes = 0.6164484
30
35
  This machine benchmarks at 81109 cold rubystones/second
31
36
  Rubystone 1.0 warm time for 50000 passes = 0.6284089
32
37
  This machine benchmarks at 79566 warm rubystones/second
33
38
 
39
+ $ ruby -v
40
+ jruby 1.7.13 (2.0.0p195) 2014-06-24 43f133c on OpenJDK 64-Bit Server VM 1.7.0_55-b14 [linux-amd64]
41
+ $ rubystone
42
+ Rubystone 1.0 cold time for 50000 passes = 0.903
43
+ This machine benchmarks at 55370 cold rubystones/second
44
+ Rubystone 1.0 warm time for 50000 passes = 0.293
45
+ This machine benchmarks at 170648 warm rubystones/second
46
+
47
+ $ ruby -v
48
+ rubinius 2.2.10 (2.1.0 bf61ae2e 2014-06-27 JI) [x86_64-linux-gnu]
49
+ $ rubystone
50
+ Rubystone 1.0 cold time for 50000 passes = 0.689623
51
+ This machine benchmarks at 72503 cold rubystones/second
52
+ Rubystone 1.0 warm time for 50000 passes = 0.321823
53
+ This machine benchmarks at 155364 warm rubystones/second
34
54
  ```
35
55
 
36
56
  ## Version
37
57
 
38
- Ruby/1.0.2 (corresponds to Python/1.1 PYSTONE version)
58
+ Ruby/1.0.3 (corresponds to Python/1.1 PYSTONE version)
39
59
 
40
60
  ## Author
41
61
 
@@ -58,6 +78,7 @@ platforms with JIT compilation (JRuby, Rubinius).
58
78
  ## Version History
59
79
 
60
80
  <dl>
81
+ <dt>1.0.3</dt> <dd>Updating README</dd>
61
82
  <dt>1.0.2</dt> <dd>Updating of the script comment in order to reflect the README</dd>
62
83
  <dt>1.0.1</dt> <dd>Generating new gem</dd>
63
84
  <dt>1.0</dt> <dd>Porting of Python/1.1 PYSTONE version</dd>
data/bin/rubystone CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/env ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  # "RUBYSTONE" Benchmark Program
4
4
  #
@@ -6,7 +6,7 @@
6
6
  # It provides a rough benchmark of the Ruby interpreter.
7
7
  #
8
8
  #
9
- # Version: Ruby/1.0.2 (corresponds to Python/1.1 PYSTONE version)
9
+ # Version: Ruby/1.0.3 (corresponds to Python/1.1 PYSTONE version)
10
10
  #
11
11
  # Author: Reinhold P. Weicker, CACM Vol 27, No 10, 10/84 pg. 1013.
12
12
  #
@@ -24,6 +24,7 @@
24
24
  #
25
25
  # Version History:
26
26
  #
27
+ # 1.0.3 Updating README
27
28
  # 1.0.2 Updating of the script comment in order to reflect the README
28
29
  # 1.0.1 Generating new gem
29
30
  # 1.0 Porting of Python/1.1 PYSTONE version
data/rubystone.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'rubystone'
3
- spec.version = '1.0.2'
3
+ spec.version = '1.0.3'
4
4
  spec.license = 'MIT'
5
5
  spec.summary = 'Ruby porting of the Python PYSTONE script'
6
6
  spec.description = <<-DESC
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubystone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maurizio De Santis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
- - - "~>"
22
+ - - ~>
25
23
  - !ruby/object:Gem::Version
26
24
  version: '1.6'
25
+ prerelease: false
26
+ type: :development
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
- requirement: !ruby/object:Gem::Requirement
29
+ version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
37
35
  requirements:
38
- - - "~>"
36
+ - - ~>
39
37
  - !ruby/object:Gem::Version
40
38
  version: '10.0'
39
+ prerelease: false
40
+ type: :development
41
41
  description: |
42
42
  It provides a rough benchmark of the Ruby interpreter
43
43
  via the `rubystone` executable.
@@ -47,7 +47,7 @@ executables:
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
- - ".gitignore"
50
+ - .gitignore
51
51
  - Gemfile
52
52
  - LICENSE
53
53
  - README.md
@@ -58,24 +58,24 @@ homepage: https://github.com/mdesantis/rubystone
58
58
  licenses:
59
59
  - MIT
60
60
  metadata: {}
61
- post_install_message:
61
+ post_install_message:
62
62
  rdoc_options: []
63
63
  require_paths:
64
- - "."
64
+ - .
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubyforge_project:
76
+ rubyforge_project:
77
77
  rubygems_version: 2.3.0
78
- signing_key:
78
+ signing_key:
79
79
  specification_version: 4
80
80
  summary: Ruby porting of the Python PYSTONE script
81
81
  test_files: []