Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
misc
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
misc
Commits
4c89a1db
Commit
4c89a1db
authored
Mar 22, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
666f4890
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16353 additions
and
993 deletions
+16353
-993
t_copy_c.c
t_copy_c.c
+2
-2
t_copy_c.csv
t_copy_c.csv
+8177
-497
t_copy_go.csv
t_copy_go.csv
+8171
-491
t_copy_go.go
t_copy_go.go
+3
-3
No files found.
t_copy_c.c
View file @
4c89a1db
...
@@ -24,7 +24,7 @@ double microtime() {
...
@@ -24,7 +24,7 @@ double microtime() {
// 12345678
// 12345678
#define NITER 1000000
#define NITER 1000000
#define BUFSIZE
6
4*1024
#define BUFSIZE
102
4*1024
static
char
buf
[
BUFSIZE
];
static
char
buf
[
BUFSIZE
];
static
char
buf2
[
BUFSIZE
];
static
char
buf2
[
BUFSIZE
];
...
@@ -41,7 +41,7 @@ int main() {
...
@@ -41,7 +41,7 @@ int main() {
int
niter
=
NITER
;
int
niter
=
NITER
;
if
(
size
>
10000
)
if
(
size
>
10000
)
niter
/=
(
size
/
1000
0
);
// compensate for larger bench sizes
niter
/=
(
size
/
1000
/*0*/
);
// compensate for larger bench sizes
//for (i = 0; i < NITER; i++) {
//for (i = 0; i < NITER; i++) {
for
(
i
=
0
;
i
<
niter
;
i
++
)
{
for
(
i
=
0
;
i
<
niter
;
i
++
)
{
...
...
t_copy_c.csv
View file @
4c89a1db
This diff is collapsed.
Click to expand it.
t_copy_go.csv
View file @
4c89a1db
This diff is collapsed.
Click to expand it.
t_copy_go.go
View file @
4c89a1db
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
// 12345678
// 12345678
const
Niter
=
1000000
const
Niter
=
1000000
const
BufSize
=
6
4
*
1024
const
BufSize
=
102
4
*
1024
var
buf
[
BufSize
]
byte
var
buf
[
BufSize
]
byte
var
buf2
[
BufSize
]
byte
var
buf2
[
BufSize
]
byte
...
@@ -23,8 +23,8 @@ func main() {
...
@@ -23,8 +23,8 @@ func main() {
Tstart
:=
time
.
Now
()
Tstart
:=
time
.
Now
()
niter
:=
Niter
niter
:=
Niter
if
(
size
>
1
0000
)
{
if
(
size
>
1
E4
)
{
niter
/=
(
size
/
1
0000
)
niter
/=
(
size
/
1
E3
)
}
}
//for i := 0; i < Niter; i++ {
//for i := 0; i < Niter; i++ {
...
...
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