-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial benchmark setup * Add benchmark proj support * Format * Fix doctest test suite macros * Address PR comments * Fix proj * Hopefully fix ci checks * Fix build issue * Update proj
- Loading branch information
Showing
26 changed files
with
500 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ stdenv | ||
, lib | ||
, fetchurl | ||
, alsaLib | ||
, openssl | ||
, zlib | ||
, pulseaudio | ||
, autoPatchelfHook | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "bencher-cli"; | ||
version = "0.4.33"; | ||
|
||
system = "x86_64-linux"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/bencherdev/bencher/releases/download/v${version}/bencher-v${version}-linux-x86-64"; | ||
hash = "sha256-3q2ZGSqbcMaUcNMGJN+IsEP/+RlYHnsmiWdJ2oV2qmw="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
autoPatchelfHook | ||
]; | ||
|
||
dontUnpack = true; | ||
|
||
installPhase = '' | ||
ls | ||
runHook preInstall | ||
install -m755 -D $src $out/bin/bencher | ||
runHook postInstall | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = "https://bencher.dev/"; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ fetchFromGitHub | ||
, stdenv | ||
, lib | ||
, cmake | ||
, pkg-config | ||
, zstd | ||
, libdwarf-lite | ||
, libunwind | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "cpptrace"; | ||
version = "0.7.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "jeremy-rifkin"; | ||
repo = "cpptrace"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-2rDyH9vo47tbqqZrTupAOrMySj4IGKeWX8HBTGjFf+g="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
zstd | ||
libdwarf-lite | ||
libunwind | ||
]; | ||
|
||
cmakeFlags = [ | ||
"-DBUILD_SHARED_LIBS=On" | ||
"-DCPPTRACE_USE_EXTERNAL_ZSTD=1" | ||
"-DCPPTRACE_USE_EXTERNAL_LIBDWARF=1" | ||
"-DCPPTRACE_STD_FORMAT=0" | ||
"-DCPPTRACE_STATIC_DEFINE=0" | ||
"-DCPPTRACE_UNWIND_WITH_LIBUNWIND=1" | ||
"-DCPPTRACE_FIND_LIBDWARF_WITH_PKGCONFIG=1" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Simple, portable, and self-contained stacktrace library for C++11 and newer"; | ||
homepage = "https://github.com/jeremy-rifkin/cpptrace"; | ||
license = licenses.mit; | ||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ fetchFromGitHub | ||
, stdenv | ||
, lib | ||
, cmake | ||
, cpptrace | ||
, zstd | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "libassert"; | ||
version = "2.1.4"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "jeremy-rifkin"; | ||
repo = "libassert"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-Zkh6JjJqtOf91U01fpP4hKhhXfH7YGInodG8CZxHHXQ="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
cpptrace | ||
zstd | ||
]; | ||
|
||
cmakeFlags = [ | ||
"-DBUILD_SHARED_LIBS=1" | ||
"-DLIBASSERT_USE_EXTERNAL_CPPTRACE=1" | ||
]; | ||
|
||
meta = with lib; { | ||
description = "The most over-engineered C++ assertion library"; | ||
homepage = "https://github.com/jeremy-rifkin/libassert"; | ||
license = licenses.mit; | ||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
cmake, | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "libdwarf-lite"; | ||
version = "0.11.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "jeremy-rifkin"; | ||
repo = "libdwarf-lite"; | ||
rev = "v${finalAttrs.version}"; | ||
hash = "sha256-qHikjAG5xuuHquqqKGuiDHXVZSlg/MbNp9JNSAKM/Hs="; | ||
}; | ||
|
||
outputs = [ | ||
"dev" | ||
"lib" | ||
"out" | ||
]; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
cmakeFlags = [ | ||
(lib.cmakeBool "BUILD_DWARFDUMP" false) | ||
(lib.cmakeBool "PIC_ALWAYS" true) | ||
]; | ||
|
||
meta = { | ||
description = "Minimal libdwarf mirror for faster cloning and configuration"; | ||
homepage = "https://github.com/jeremy-rifkin/libdwarf-lite"; | ||
license = lib.licenses.lgpl21Only; | ||
maintainers = [ ]; | ||
mainProgram = "libdwarf-lite"; | ||
platforms = lib.platforms.all; | ||
}; | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
*.dtg.cc | ||
*.dtg.h | ||
|
||
# nix build result | ||
/result | ||
|
||
# ctest-created files | ||
Testing/ | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
include(aliasing) | ||
|
||
if (FF_USE_EXTERNAL_GBENCHMARK) | ||
find_package(benchmark REQUIRED) | ||
alias_library(gbenchmark benchmark::benchmark) | ||
alias_library(gbenchmark-main benchmark::benchmark_main) | ||
else() | ||
message(FATAL_ERROR "Currently FF_USE_EXTERNAL_GBENCHMARK is required") | ||
endif() | ||
|
Oops, something went wrong.