Skip to content

Instantly share code, notes, and snippets.

Avatar

Bora KAŞMER borakasmer

View GitHub Profile
View program.cs
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
public class Program
{
public static async Task Main(string[] args)
{
var summary = BenchmarkRunner.Run<ArrayVsList>();
}
}
View program.cs
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
public class Program
{
public static void Main(string[] args)
{
var summary= BenchmarkRunner.Run<ListCapacityPerformance>();
}
}
View concurrency_test.go
package concurrency
import "testing"
func TestConcurrency(t *testing.T){
testGroup := []struct{
max int
duration int
}{
{10,5},
View concurrencyPackage.go
package concurrency
import (
"container/list"
"fmt"
"strings"
"sync"
"time"
)
func makeRangeList(min,max int) *list.List{
View concurrency.go
package main
import (
"container/list"
"fmt"
"math/rand"
"sync"
"time"
)
View prototype.go
package main
import "fmt"
var dataHistoryList map[int]Fighter
type Fighter interface{
GetId() FighterType
Fight()
Clone() Fighter
}
View memento.go
package main
import (
"fmt"
"time"
"strings"
)
type CarType int
const (