bencho 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/bencho +60 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cc9a117d35cdf6d7ac9780ffa444650fbe88ac93299df044f2148965f3129b62
|
4
|
+
data.tar.gz: f1973770f48273af25e6a42bc4919c3dd2bccc23c503de26bdb2fbe3df9ed3ea
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9672922517b940ed53385efaa55036cdbdf9c870b24419bdcfd3ac104d243370a92d367ddfd3d3f0df2c68cfb622baef3581d75eed8f4926618c7340a65f1ade
|
7
|
+
data.tar.gz: 89aa1a532be821eeede78c13591505268f174a4ac48d43f66fb161ced5ddca197ab06eb9790c92114583b2371677e62339cbc8ad63a4d80412b92e4c593abe4f
|
data/bin/bencho
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require "colorize"
|
3
|
+
puts "Hello welcome to Bencho! im a benchmark test program made in ruby lang!".colorize(:green)
|
4
|
+
puts "Ok lets start:".colorize(:green)
|
5
|
+
puts "What is your operating system?".colorize(:green)
|
6
|
+
os = gets.chomp
|
7
|
+
puts "selected #{os}!".colorize(:green)
|
8
|
+
sleep 1
|
9
|
+
puts "Benchmark selecting:".colorize(:green)
|
10
|
+
sleep 1
|
11
|
+
puts "browser (Open unlimited browsers just for test your CPU and RAM)".colorize(:blue)
|
12
|
+
puts "output (Says unlimited random numbers for test your CPU)".colorize(:blue)
|
13
|
+
benchsel = gets.chomp
|
14
|
+
if benchsel == "browser"
|
15
|
+
puts "What is your browser?".colorize(:green)
|
16
|
+
browser = gets.chomp
|
17
|
+
|
18
|
+
if browser == "firefox"
|
19
|
+
if os == "windows"
|
20
|
+
#loop do
|
21
|
+
# sleep 1
|
22
|
+
#exec('"C:\\Program Files\\Mozilla Firefox\\firefox.exe"')
|
23
|
+
#end
|
24
|
+
puts "Sorry but browser in windows is not working :/ im working harder on that!".colorize(:red)
|
25
|
+
end
|
26
|
+
if os == "linux"
|
27
|
+
loop do
|
28
|
+
system("firefox")
|
29
|
+
end
|
30
|
+
end
|
31
|
+
if os == "mac"
|
32
|
+
loop do
|
33
|
+
system("firefox")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
if browser != "firefox"
|
40
|
+
puts "Sorry but i only suport firefox browser!".colorize(:red)
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
if benchsel == "output"
|
45
|
+
if os == "windows"
|
46
|
+
loop do
|
47
|
+
puts rand(1..100000000000000000).colorize(:yellow)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
if os == "linux"
|
51
|
+
loop do
|
52
|
+
puts rand(1..100000000000000000).colorize(:yellow)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
if os == "mac"
|
56
|
+
loop do
|
57
|
+
puts rand(1..100000000000000000).colorize(:yellow)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bencho
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- NillyTheL0L
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-26 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: An benchmark gem for ruby that execute browsers and outputs!
|
14
|
+
email: iagodp08@gmail.com
|
15
|
+
executables:
|
16
|
+
- bencho
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- bin/bencho
|
21
|
+
homepage: ''
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubygems_version: 3.3.26
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: An benchmark gem for ruby!
|
44
|
+
test_files: []
|