Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
eb2ce7b7
Commit
eb2ce7b7
authored
Oct 13, 2017
by
Test
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2d13818e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
go/neo/t/neotest
go/neo/t/neotest
+1
-1
go/neo/t/tsha1.go
go/neo/t/tsha1.go
+1
-1
go/neo/t/tsha1.py
go/neo/t/tsha1.py
+2
-3
No files found.
go/neo/t/neotest
View file @
eb2ce7b7
...
...
@@ -734,7 +734,7 @@ nrunpar() {
# bench_cpu - microbenchmark CPU
bench_cpu
()
{
nrun sh
-c
"python -m test.pystone |tail -1 |sed -e
\
\"
s|^This machine benchmarks at
\(
[0-9]
\+\)
pystones/second
$|
Benchmark
pystone/
`
hostname
`
1
\1
pystone/s|
\"
"
\"
s|^This machine benchmarks at
\(
[0-9]
\+\)
pystones/second
$|
Benchmark
`
hostname
`
/pystone
1
\1
pystone/s|
\"
"
nrun ./tsha1.py 1024
nrun ./tsha1_go 1024
...
...
go/neo/t/tsha1.go
View file @
eb2ce7b7
...
...
@@ -67,5 +67,5 @@ func main() {
hostname
=
"?"
}
fmt
.
Printf
(
"Benchmark
sha1/%s
/go/%dB %d
\t
%.3f µs/op
\n
"
,
hostname
,
blksize
,
n
,
float64
(
δt
)
/
float64
(
n
)
/
float64
(
time
.
Microsecond
))
fmt
.
Printf
(
"Benchmark
%s/sha1
/go/%dB %d
\t
%.3f µs/op
\n
"
,
hostname
,
blksize
,
n
,
float64
(
δt
)
/
float64
(
n
)
/
float64
(
time
.
Microsecond
))
}
go/neo/t/tsha1.py
View file @
eb2ce7b7
...
...
@@ -46,9 +46,8 @@ def main():
tend
=
time
()
dt
=
tend
-
tstart
# hostname generally != fqdn[0] XXX clarify/refine
hostname
=
socket
.
getfqdn
().
split
(
'.'
)[
0
]
print
(
'Benchmarksha1/%s/py/%dB %d
\
t
%.3f µs/op'
%
(
hostname
,
blksize
,
n
,
dt
*
1E6
/
n
))
hostname
=
socket
.
gethostname
()
print
(
'Benchmark%s/sha1/py/%dB %d
\
t
%.3f µs/op'
%
(
hostname
,
blksize
,
n
,
dt
*
1E6
/
n
))
if
__name__
==
'__main__'
:
main
()
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