This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package proxy | |
import ( | |
"context" | |
"testing" | |
) | |
// Benchmark2Context-4 5373907 192 ns/op | |
// Benchmark10Context-4 678060 1493 ns/op | |
// Benchmark20Context-4 289543 4408 ns/op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package proxy | |
import ( | |
"context" | |
"testing" | |
) | |
// Benchmark2Context-4 26155296 47.0 ns/op | |
// Benchmark10Context-4 1892139 616 ns/op | |
// Benchmark20Context-4 479120 2401 ns/op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net" | |
"time" | |
"github.com/xtaci/smux" | |
) |