Skip to content

Instantly share code, notes, and snippets.

Analyzing build trace from 'analysis.bin'...
**** Time summary:
Compilation (3239 times):
Parsing (frontend): 3573.4 s
Codegen & opts (backend): 1785.5 s
**** Files that took longest to parse (compiler frontend):
25335 ms: ./editor/editor_translation.windows.editor.x86_64.llvm.o
21648 ms: ./modules/text_server_adv/text_server_adv.windows.editor.x86_64.llvm.o
12415 ms: ./platform/windows/display_server_windows.windows.editor.x86_64.llvm.o
@vittorioromeo
vittorioromeo / bench0.cpp
Last active March 1, 2022 02:25
`libstdc++` debug performance benchmarks with `[[gnu::always_inline]]`
#define NDEBUG 1
#include <benchmark/benchmark.h>
#include <vector>
#include <algorithm>
#include <numeric>
static void vector_squareop(benchmark::State& state)
{
template <typename T>
struct range {
T _a;
T _b;
[[nodiscard]] constexpr explicit range(T a, T b) noexcept : _a{a}, _b{b} {}
struct end_sentinel {
T _value;
};
[[nodiscard]] static quake::menu makeMenuFromJSON(const json& src)
{
quake::menu m{"Custom Test Menu", &M_Menu_QuakeVRSettings_f};
for(const auto& [key, value] : src.items())
{
const char* title = key.data();
const auto& bounds = value["bounds"];
const auto generateOption = [&]<typename T>(
This file has been truncated, but you can view the full file.
SteamVR System Report created Thu Mar 26 21:45:33 2020
<Report>
SteamVR Version: 1.11.2 (1585185762)
SteamVR Date: 2020-03-26
Steam: Public
Steam Branch: beta
Steam AppID: 250820
Tracking: lighthouse
OS: Linux version 5.5.13-arch1-1 (linux@archlinux) (gcc version 9.3.0 (Arch Linux 9.3.0-1)) #1 SMP PREEMPT Wed, 25 Mar 2020 16:04:40 +0000
{"lastUpload":"2020-02-21T14:22:15.610Z","extensionVersion":"v3.4.3"}
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
// generated with `unosolo`
// https://github.com/SuperV1234/unosolo
#pragma once
#include <functional>
#include <utility>
#include <type_traits>
#include <iostream>
template <typename TSignature>
class function_ref;
template <typename TReturn, typename... TArgs>
class function_ref<TReturn(TArgs...)> final