- Tigerbeetle client and server compiled with -Drelease-safe
- Using a single, local Tigerbeetle replica, formated before each execution.
- Create 2 accounts.
- Create N batches of transfers with 8191 transactions per batch (full message lenght), measuring the time.
- Prints the total time, P100 time per batch, and transactions per second ratio.
This file contains hidden or 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
import { run, bench } from "mitata"; | |
import Mustache from "mustache"; | |
var template = "<title>{{title}}</title><h1>{{ title }}</h1><div>{{{body}}}</div>"; | |
Mustache.parse(template); | |
var data = { | |
title: "Hello, Mustache!", | |
body: "This is a really simple test of the rendering!", | |
}; |
This file contains hidden or 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
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.util.concurrent.TimeUnit; | |
public class BenchDecode { | |
static final int TRANSFER = 128; |
This file contains hidden or 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 ( | |
"fmt" | |
"log" | |
tb "github.com/tigerbeetledb/tigerbeetle-go" | |
"github.com/tigerbeetledb/tigerbeetle-go/pkg/types" | |
tb_types "github.com/tigerbeetledb/tigerbeetle-go/pkg/types" | |
) |
This file contains hidden or 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 com.tigerbeetle; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.UUID; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.TimeUnit; |
This file contains hidden or 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <pthread.h> | |
#include <sys/time.h> | |
#include "tb_client.h" | |
///////////////////////////////////////////////////////////////////////////////////// | |
// Place this file at the same folder tb_client.h // | |
// Shows the basic usage of the TigerBeetle C client. // |
This file contains hidden or 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
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace TigerBeetle.Benchmarks | |
{ | |
public static partial class BenchmarkBatching |