Batch size = 400
Keys are random.
See the results below.
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"log" | |
"net/http" | |
"os" | |
"path/filepath" | |
"strings" |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"encoding/binary" | |
"flag" | |
"fmt" | |
"github.com/spf13/nitro" | |
"io" |
// Copyright 2014 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
type stopPumping struct{} | |
// pump returns a channel src such that sending on src will eventually send on | |
// dst, in order, but that src will always be ready to send/receive soon, even | |
// if dst currently isn't. It is effectively an infinitely buffered channel. | |
// |
// This is free and unencumbered software released into the public domain. | |
// | |
// Anyone is free to copy, modify, publish, use, compile, sell, or | |
// distribute this software, either in source code form or as a compiled | |
// binary, for any purpose, commercial or non-commercial, and by any | |
// means. | |
// | |
// In jurisdictions that recognize copyright laws, the author or authors | |
// of this software dedicate any and all copyright interest in the | |
// software to the public domain. We make this dedication for the benefit |
// Pin Definitions | |
// Rows are connected to | |
const int row1 = 5; | |
const int row2 = 6; | |
const int row3 = 7; | |
const int row4 = 8; | |
const int row5 = 4; | |
const int row6 = 3; | |
const int row7 = 2; | |
const int row8 = 1; |
// Pin Definitions | |
// Rows are connected to Digital | |
const int rowPin[] = { 6, 7, 8, 5 }; | |
// FSRs connected to Analog | |
const int fsrPin[] = { 2, 3, 4, 5 }; | |
// The 74HC595 uses a serial communication | |
// link which has three pins | |
const int clock = 12; |
func stealDefinesFromCC() (defs string, ok bool) { | |
cc, ok := os.LookupEnv("CC") | |
if !ok { // second chance for CPP | |
cc, ok = os.LookupEnv("CPP") | |
if !ok { | |
return | |
} | |
} | |
cmd := exec.Command(cc, "-dM", "-E", "-x", "c", "/dev/null") | |
buf, err := cmd.CombinedOutput() |
Batch size = 400
Keys are random.
See the results below.
Batch size = 400
Keys are random.
The results are below.
Batch size = 400
Keys are sorted.
The results are below.