-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (173 loc) · 6.51 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="favicon-32x32.png" type="image/png" sizes="32x32" />
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ram Speed Calculator</title>
<!-- CSS only -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6"
crossorigin="anonymous"
/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-RTM21LX6B8"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-RTM21LX6B8");
</script>
</head>
<body>
<div class="container text-center">
<h1>RAM Speed Calculator</h1>
<p>Calculate Ram speed clock interval in nanosecond format</p>
<hr />
<div class="container bg-light shadow-sm rounded-2 my-5">
<div class="row">
<div class="col-md">
<label class="form-label fw-bold">DDR Frequency (MHz)</label>
<input
class="form-control"
type="number"
placeholder="3200"
default="3200"
value="3200"
id="mhz"
/>
</div>
<div class="col-md">
<label class="form-label fw-bold">CAS/CL</label>
<input
class="form-control"
type="number"
placeholder="16"
value="16"
id="cas"
/>
</div>
</div>
<p class="m-4">
<span class="fs-3 fw-bold text-success" id="result">0</span
><span> ns</span>
</p>
<input
type="button"
class="btn btn-primary m-3 btn-sm shadow-sm"
value="Calculate"
onclick="calculate()"
/>
</div>
<div class="container col-sm-6 bg-light rounded-2 shadow-sm p-3">
<div class="my-1">
<h2 id="ram-speed-vs-ram-latency" class="my-2 text-primary">
RAM speed vs. RAM latency
</h2>
<div class="text-start">
<p>
While a RAM’s data transfer rate tells you how many mega transfers
(1,000,000 data transfers) the RAM can do in one second (a
DDR4-3200 RAM can conduct 3,200 mega transfers in 1 second), its
CAS latency is also important for understanding RAM performance.
</p>
<p>
CAS latency tells you the total number of cycles it takes for the
RAM to send data, but you should also consider the duration of
each cycle to get a better idea of that RAM’s overall latency.
</p>
<p>Simply, Lower latency is faster.</p>
<p>
<a
href="https://www.tomshardware.com/reviews/cas-latency-ram-cl-timings-glossary-definition,6011.html"
><em>source</em></a
>
</p>
</div>
</div>
<div class="my-1">
<h2 class="my-2 text-primary" id="finding-the-ram-specification">
Finding the RAM specification
</h2>
<div class="text-start">
<p>
Several program such as
<a href="https://www.cpuid.com/softwares/cpu-z.html">CPU-Z</a> or
<a href="https://www.ccleaner.com/speccy">Speccy</a> will tell
your RAM speed. But, if you're having difficulties on finding
ram timing (<strong>CL/CAS</strong>), it usually printed on the
RAM itself. The label example as shown below.
</p>
<img class="img-fluid" src="/ram-speed-calculator/img/ram-label.png" alt="RAM Label" />
<h3 class="my-2 text-primary" id="ram-frequency">RAM frequency</h3>
<p>
Ram speed or Frequency usually written on label right after the
RAM type. In the example above, it's <code>DDR4-3200</code> or
the frequency is 3200MHz. In <em>PC4</em> Specification, the
frequency is multiplied by 8, so it reads <code>PC4-25600</code>,
denotes overall transfer rate, in megabytes per second. In
computer readings, it's normal if the speed reads half of it,
such as 1600Mhz for 3200Mhz because of
<strong>DDR(Double Data Rate)</strong>. Obvious isn't it?
</p>
<h3 class="my-2 text-primary" id="ram-timing">RAM timing</h3>
<p>
<strong>Column Address Strobe (CAS) latency</strong> can be
referred to in several different ways. A RAM kit with a CAS
latency of 14, for example, can be described as CAS 14 or CL14 or
as having CAS 14 timings. To get the <strong>CAS/CL</strong>, just
look at RAM Label, and you'll find <code>CL14-14-14-34</code>.
The first parameter will be the <strong>CL/CAS</strong> latency,
which is 14.
</p>
<p>
This timing specification is standardized by
<a href="https://www.jedec.org/">JEDEC</a>, more about it
<a href="https://en.wikipedia.org/wiki/Memory_timings">here</a>.
</p>
</div>
</div>
</div>
<hr />
<div>
<p>By <a href="https://www.github.com/ijash">Ijash</a>.</p>
<a href="https://www.github.com/ijash/ram-speed-calculator/"
>Github Repository</a
>
</div>
</div>
</body>
</html>
<script>
function round(value, precision) {
const multiplier = Math.pow(10, precision || 0);
return Math.round(value * multiplier) / multiplier;
}
function validate(inp) {
if (isNaN(inp) || inp < 1 || inp > 842938) {
return false;
} else {
return true;
}
}
function calculate() {
const freq = parseInt(document.getElementById("mhz").value);
const cas = parseInt(document.getElementById("cas").value);
let result = 0;
if (!validate(freq) || !validate(cas)) {
result = "0";
alert("invalid input");
} else {
result = round((cas / (freq / 2)) * 2000, 1);
}
document.getElementById("result").innerText = result;
}
</script>