Skip to content

Instantly share code, notes, and snippets.

View bartosz-maciaszek's full-sized avatar
💭
Does time also wonder where I went?

Bartosz Maciaszek bartosz-maciaszek

💭
Does time also wonder where I went?
View GitHub Profile
@bartosz-maciaszek
bartosz-maciaszek / docker-compose.yml
Created June 12, 2026 10:05
Mongo local replica set
services:
mongo:
image: mongo:7.0
container_name: mongo_replica
hostname: mongo_replica
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
volumes:
- dbdata:/data/db
ports:
- "27017:27017"
@bartosz-maciaszek
bartosz-maciaszek / call_user_func_benchmark.php
Created September 29, 2014 18:11
Direct call vs call_user_func() vs call_user_func_array()
<?php
class Benchmark
{
private $start = null;
public function __construct()
{
$this->start = microtime(true);
}