Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
94f845ec
Unverified
Commit
94f845ec
authored
Jun 28, 2021
by
Mircea Trofin
Committed by
GitHub
Jun 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos (#1194)
parent
05a2ace7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
benchmark_runner.cc
src/benchmark_runner.cc
+1
-1
sysinfo.cc
src/sysinfo.cc
+1
-1
No files found.
src/benchmark_runner.cc
View file @
94f845ec
...
@@ -320,7 +320,7 @@ void BenchmarkRunner::DoOneRepetition() {
...
@@ -320,7 +320,7 @@ void BenchmarkRunner::DoOneRepetition() {
memory_manager
->
Stop
(
&
memory_result
);
memory_manager
->
Stop
(
&
memory_result
);
}
}
// Ok, now actualy report.
// Ok, now actual
l
y report.
BenchmarkReporter
::
Run
report
=
BenchmarkReporter
::
Run
report
=
CreateRunReport
(
b
,
i
.
results
,
memory_iterations
,
memory_result
,
i
.
seconds
,
CreateRunReport
(
b
,
i
.
results
,
memory_iterations
,
memory_result
,
i
.
seconds
,
num_repetitions_done
,
repeats
);
num_repetitions_done
,
repeats
);
...
...
src/sysinfo.cc
View file @
94f845ec
...
@@ -545,7 +545,7 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) {
...
@@ -545,7 +545,7 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) {
// cannot always be relied upon. The same reasons apply to /proc/cpuinfo as
// cannot always be relied upon. The same reasons apply to /proc/cpuinfo as
// well.
// well.
if
(
ReadFromFile
(
"/sys/devices/system/cpu/cpu0/tsc_freq_khz"
,
&
freq
)
if
(
ReadFromFile
(
"/sys/devices/system/cpu/cpu0/tsc_freq_khz"
,
&
freq
)
// If CPU scaling is disabled, use the
the
*current* frequency.
// If CPU scaling is disabled, use the *current* frequency.
// Note that we specifically don't want to read cpuinfo_cur_freq,
// Note that we specifically don't want to read cpuinfo_cur_freq,
// because it is only readable by root.
// because it is only readable by root.
||
(
scaling
==
CPUInfo
::
Scaling
::
DISABLED
&&
||
(
scaling
==
CPUInfo
::
Scaling
::
DISABLED
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment