Commit 4c89a1db authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 666f4890
......@@ -24,7 +24,7 @@ double microtime() {
// 12345678
#define NITER 1000000
#define BUFSIZE 64*1024
#define BUFSIZE 1024*1024
static char buf[BUFSIZE];
static char buf2[BUFSIZE];
......@@ -41,7 +41,7 @@ int main() {
int niter = NITER;
if (size > 10000)
niter /= (size / 10000); // 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++) {
......
This diff is collapsed.
This diff is collapsed.
......@@ -8,7 +8,7 @@ import (
// 12345678
const Niter = 1000000
const BufSize = 64*1024
const BufSize = 1024*1024
var buf [BufSize]byte
var buf2 [BufSize]byte
......@@ -23,8 +23,8 @@ func main() {
Tstart := time.Now()
niter := Niter
if (size > 10000) {
niter /= (size / 10000)
if (size > 1E4) {
niter /= (size / 1E3)
}
//for i := 0; i < Niter; i++ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment