Squashed 'third_party/immer/' content from commit ad3e3556d
git-subtree-dir: third_party/immer git-subtree-split: ad3e3556d38bb75966dd24c61a774970a7c7957e
This commit is contained in:
commit
7f19d64164
311 changed files with 74223 additions and 0 deletions
20
benchmark/vector/branching/access.ipp
Normal file
20
benchmark/vector/branching/access.ipp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include "benchmark/vector/access.hpp"
|
||||
#include <immer/flex_vector.hpp>
|
||||
|
||||
#ifndef MEMORY_T
|
||||
#error "define the MEMORY_T"
|
||||
#endif
|
||||
|
||||
NONIUS_BENCHMARK("flex/3", benchmark_access_idx<immer::flex_vector<std::size_t,MEMORY_T,3>>())
|
||||
NONIUS_BENCHMARK("flex/4", benchmark_access_idx<immer::flex_vector<std::size_t,MEMORY_T,4>>())
|
||||
NONIUS_BENCHMARK("flex/5", benchmark_access_idx<immer::flex_vector<std::size_t,MEMORY_T,5>>())
|
||||
NONIUS_BENCHMARK("flex/6", benchmark_access_idx<immer::flex_vector<std::size_t,MEMORY_T,6>>())
|
||||
NONIUS_BENCHMARK("flex/7", benchmark_access_idx<immer::flex_vector<std::size_t,MEMORY_T,7>>())
|
||||
20
benchmark/vector/branching/assoc.ipp
Normal file
20
benchmark/vector/branching/assoc.ipp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include "benchmark/vector/assoc.hpp"
|
||||
#include <immer/flex_vector.hpp>
|
||||
|
||||
#ifndef MEMORY_T
|
||||
#error "define the MEMORY_T"
|
||||
#endif
|
||||
|
||||
NONIUS_BENCHMARK("flex/3", benchmark_assoc<immer::flex_vector<std::size_t,MEMORY_T,3>>())
|
||||
NONIUS_BENCHMARK("flex/4", benchmark_assoc<immer::flex_vector<std::size_t,MEMORY_T,4>>())
|
||||
NONIUS_BENCHMARK("flex/5", benchmark_assoc<immer::flex_vector<std::size_t,MEMORY_T,5>>())
|
||||
NONIUS_BENCHMARK("flex/6", benchmark_assoc<immer::flex_vector<std::size_t,MEMORY_T,6>>())
|
||||
NONIUS_BENCHMARK("flex/7", benchmark_assoc<immer::flex_vector<std::size_t,MEMORY_T,7>>())
|
||||
10
benchmark/vector/branching/basic/access.cpp
Normal file
10
benchmark/vector/branching/basic/access.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T basic_memory
|
||||
#include "../access.ipp"
|
||||
10
benchmark/vector/branching/basic/assoc.cpp
Normal file
10
benchmark/vector/branching/basic/assoc.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T basic_memory
|
||||
#include "../assoc.ipp"
|
||||
10
benchmark/vector/branching/basic/concat.cpp
Normal file
10
benchmark/vector/branching/basic/concat.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T basic_memory
|
||||
#include "../concat.ipp"
|
||||
10
benchmark/vector/branching/basic/push.cpp
Normal file
10
benchmark/vector/branching/basic/push.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T basic_memory
|
||||
#include "../push.ipp"
|
||||
20
benchmark/vector/branching/concat.ipp
Normal file
20
benchmark/vector/branching/concat.ipp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include "benchmark/vector/concat.hpp"
|
||||
#include <immer/flex_vector.hpp>
|
||||
|
||||
#ifndef MEMORY_T
|
||||
#error "define the MEMORY_T"
|
||||
#endif
|
||||
|
||||
NONIUS_BENCHMARK("flex/3", benchmark_concat<immer::flex_vector<std::size_t,MEMORY_T,3>>())
|
||||
NONIUS_BENCHMARK("flex/4", benchmark_concat<immer::flex_vector<std::size_t,MEMORY_T,4>>())
|
||||
NONIUS_BENCHMARK("flex/5", benchmark_concat<immer::flex_vector<std::size_t,MEMORY_T,5>>())
|
||||
NONIUS_BENCHMARK("flex/6", benchmark_concat<immer::flex_vector<std::size_t,MEMORY_T,6>>())
|
||||
NONIUS_BENCHMARK("flex/7", benchmark_concat<immer::flex_vector<std::size_t,MEMORY_T,7>>())
|
||||
10
benchmark/vector/branching/gc/access.cpp
Normal file
10
benchmark/vector/branching/gc/access.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T gc_memory
|
||||
#include "../access.ipp"
|
||||
10
benchmark/vector/branching/gc/assoc.cpp
Normal file
10
benchmark/vector/branching/gc/assoc.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T gc_memory
|
||||
#include "../assoc.ipp"
|
||||
10
benchmark/vector/branching/gc/concat.cpp
Normal file
10
benchmark/vector/branching/gc/concat.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T gc_memory
|
||||
#include "../concat.ipp"
|
||||
10
benchmark/vector/branching/gc/push.cpp
Normal file
10
benchmark/vector/branching/gc/push.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T gc_memory
|
||||
#include "../push.ipp"
|
||||
20
benchmark/vector/branching/push.ipp
Normal file
20
benchmark/vector/branching/push.ipp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include "benchmark/vector/push.hpp"
|
||||
#include <immer/flex_vector.hpp>
|
||||
|
||||
#ifndef MEMORY_T
|
||||
#error "define the MEMORY_T"
|
||||
#endif
|
||||
|
||||
NONIUS_BENCHMARK("flex/3", benchmark_push<immer::flex_vector<std::size_t,MEMORY_T,3>>())
|
||||
NONIUS_BENCHMARK("flex/4", benchmark_push<immer::flex_vector<std::size_t,MEMORY_T,4>>())
|
||||
NONIUS_BENCHMARK("flex/5", benchmark_push<immer::flex_vector<std::size_t,MEMORY_T,5>>())
|
||||
NONIUS_BENCHMARK("flex/6", benchmark_push<immer::flex_vector<std::size_t,MEMORY_T,6>>())
|
||||
NONIUS_BENCHMARK("flex/7", benchmark_push<immer::flex_vector<std::size_t,MEMORY_T,7>>())
|
||||
10
benchmark/vector/branching/safe/access.cpp
Normal file
10
benchmark/vector/branching/safe/access.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T safe_memory
|
||||
#include "../access.ipp"
|
||||
10
benchmark/vector/branching/safe/assoc.cpp
Normal file
10
benchmark/vector/branching/safe/assoc.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T safe_memory
|
||||
#include "../assoc.ipp"
|
||||
10
benchmark/vector/branching/safe/concat.cpp
Normal file
10
benchmark/vector/branching/safe/concat.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T safe_memory
|
||||
#include "../concat.ipp"
|
||||
10
benchmark/vector/branching/safe/push.cpp
Normal file
10
benchmark/vector/branching/safe/push.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T safe_memory
|
||||
#include "../push.ipp"
|
||||
10
benchmark/vector/branching/unsafe/access.cpp
Normal file
10
benchmark/vector/branching/unsafe/access.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T unsafe_memory
|
||||
#include "../access.ipp"
|
||||
10
benchmark/vector/branching/unsafe/assoc.cpp
Normal file
10
benchmark/vector/branching/unsafe/assoc.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T unsafe_memory
|
||||
#include "../assoc.ipp"
|
||||
10
benchmark/vector/branching/unsafe/concat.cpp
Normal file
10
benchmark/vector/branching/unsafe/concat.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T unsafe_memory
|
||||
#include "../concat.ipp"
|
||||
10
benchmark/vector/branching/unsafe/push.cpp
Normal file
10
benchmark/vector/branching/unsafe/push.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// immer: immutable data structures for C++
|
||||
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
|
||||
//
|
||||
// This software is distributed under the Boost Software License, Version 1.0.
|
||||
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#define MEMORY_T unsafe_memory
|
||||
#include "../push.ipp"
|
||||
Loading…
Add table
Add a link
Reference in a new issue