S2 Geometry Cell Sizes - http://s2geometry.io/
package main
import (
"flag"
"fmt"
/* | |
Benchmark_RWMutex-4 100000000 18.1 ns/op | |
Benchmark_Atomic-4 200000000 8.01 ns/op | |
Benchmark_RWMutex_parallel-4 30000000 46.7 ns/op | |
Benchmark_Atomic_parallel-4 1000000000 2.61 ns/op | |
*/ | |
package main |
[ | |
{ | |
"name": "Afghanistan", | |
"alpha2": "AF", | |
"alpha3": "AFG", | |
"numeric": 4 | |
}, | |
{ | |
"name": "Albania", | |
"alpha2": "AL", |
default: bench | |
bench: | |
go test -run=NONE -bench=. -benchmem |
package main
import (
"flag"
"fmt"
export function sum( | |
forSomeReasonThisIsAVeryLongVariableName1: number, | |
forSomeReasonThisIsAVeryLongVariableName2: number, | |
): number { | |
return ( | |
forSomeReasonThisIsAVeryLongVariableName1 + | |
forSomeReasonThisIsAVeryLongVariableName2 | |
); | |
} |
# "Performance Scalability of a Multi-Core Web Server", Nov 2007 | |
# Bryan Veal and Annie Foong, Intel Corporation, Page 4/10 | |
fs.file-max = 5000000 | |
net.core.netdev_max_backlog = 400000 | |
net.core.optmem_max = 10000000 | |
net.core.rmem_default = 10000000 | |
net.core.rmem_max = 10000000 | |
net.core.somaxconn = 100000 | |
net.core.wmem_default = 10000000 | |
net.core.wmem_max = 10000000 |
{ | |
"IAB1": "Arts & Entertainment", | |
"IAB1-1": "Books & Literature", | |
"IAB1-2": "Celebrity Fan/Gossip", | |
"IAB1-3": "Fine Art", | |
"IAB1-4": "Humor", | |
"IAB1-5": "Movies", | |
"IAB1-6": "Music", | |
"IAB1-7": "Television", | |
"IAB2": "Automotive", |
# Integration benchmark for redis BITPOS command | |
require 'redis' | |
require 'benchmark' | |
random = Random.new(1) | |
redis = Redis.new timeout: 60 | |
bitlen = 10_000 | |
tmpkey = "__rb__bs__" | |
server = File.expand_path('../src/redis-server', __FILE__) |
/* mtest8.c - memory-mapped database tester/toy */ | |
/* | |
* Copyright 2013 Dimitrij Denissenko, Black Square Media | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted only as authorized by the OpenLDAP | |
* Public License. | |
* | |
* A copy of this license is available in the file LICENSE in the |
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "Sorry, please run with sudo." | |
exit 1 | |
fi | |
echo "deb http://binaries.erlang-solutions.com/debian `lsb_release -c | cut -f2` contrib" | tee /etc/apt/sources.list.d/esl-erlang.list | |
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | apt-key add - | |
aptitude update |