Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
mariadb
Commits
fb55d78f
Commit
fb55d78f
authored
Jul 27, 2008
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sum64
git-svn-id:
file:///svn/tokudb@5360
c7de825b-a66e-492c-adef-691d508d4ae1
parent
300bbe88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
newbrt/hash-benchmarks/hash-benchmark.c
newbrt/hash-benchmarks/hash-benchmark.c
+1
-1
No files found.
newbrt/hash-benchmarks/hash-benchmark.c
View file @
fb55d78f
...
@@ -1091,7 +1091,7 @@ static void measure_bandwidths (void) {
...
@@ -1091,7 +1091,7 @@ static void measure_bandwidths (void) {
measure_bandwidth
(
"crc32by1 "
,
({
c
=
0
;
int
j
;
for
(
j
=
0
;
j
<
N
;
j
++
)
c
=
crc32
(
c
,
buf
+
j
,
1
);
}));
measure_bandwidth
(
"crc32by1 "
,
({
c
=
0
;
int
j
;
for
(
j
=
0
;
j
<
N
;
j
++
)
c
=
crc32
(
c
,
buf
+
j
,
1
);
}));
measure_bandwidth
(
"crc32by2 "
,
({
c
=
0
;
int
j
;
for
(
j
=
0
;
j
<
N
;
j
+=
2
)
c
=
crc32
(
c
,
buf
+
j
,
2
);
}));
measure_bandwidth
(
"crc32by2 "
,
({
c
=
0
;
int
j
;
for
(
j
=
0
;
j
<
N
;
j
+=
2
)
c
=
crc32
(
c
,
buf
+
j
,
2
);
}));
measure_bandwidth
(
"sum32 "
,
c
=
sum32
(
buf
,
N
));
measure_bandwidth
(
"sum32 "
,
c
=
sum32
(
buf
,
N
));
measure_bandwidth
(
"sum64 "
,
c
=
sum
32
(
buf
,
N
));
measure_bandwidth
(
"sum64 "
,
c
=
sum
64
(
buf
,
N
));
measure_bandwidth
(
"murmur "
,
c
=
MurmurHash2
(
buf
,
N
));
measure_bandwidth
(
"murmur "
,
c
=
MurmurHash2
(
buf
,
N
));
measure_bandwidth
(
"murmurf "
,
({
struct
murmur
mm
;
murmur_init
(
&
mm
);
murmur_add
(
&
mm
,
buf
,
N
);
c
=
murmur_finish
(
&
mm
);
}));
measure_bandwidth
(
"murmurf "
,
({
struct
murmur
mm
;
murmur_init
(
&
mm
);
murmur_add
(
&
mm
,
buf
,
N
);
c
=
murmur_finish
(
&
mm
);
}));
measure_bandwidth
(
"sum84 "
,
({
struct
sum84
s
;
sum84_init
(
&
s
);
sum84_add
(
&
s
,
buf
,
N
);
c
=
sum84_finish
(
&
s
);
}));
measure_bandwidth
(
"sum84 "
,
({
struct
sum84
s
;
sum84_init
(
&
s
);
sum84_add
(
&
s
,
buf
,
N
);
c
=
sum84_finish
(
&
s
);
}));
...
...
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