Skip to content

Instantly share code, notes, and snippets.

View det's full-sized avatar

Chris Clearwater det

View GitHub Profile
# Enable cppmap availability for each library/binary.
modules_maps_feature = feature(name = "module_maps", enabled = True)
# This doesn't seem relevant to compiling with modules, but just used by the layering check.
# Does any other action need the dependent cppmap files listed on the command line?
use_module_maps_feature = feature(
name = "use_module_maps",
requires = [feature_set(features = ["module_maps"])],
flag_sets = [
flag_set(
000000000040a5a0 <boost::segmented_tree_seq_detail::static_traits_t<unsigned long, void*, unsigned long, 512ul, 512ul>::find_index_leaf(boost::segmented_tree_seq_detail::static_traits_t<unsigned long, void*, unsigned long, 512ul, 512ul>::node*, unsigned long)>:
40a5a0: 41 56 push %r14
40a5a2: 53 push %rbx
40a5a3: 50 push %rax
40a5a4: 48 89 d0 mov %rdx,%rax
40a5a7: 49 89 fe mov %rdi,%r14
40a5aa: 31 d2 xor %edx,%edx
40a5ac: 0f 1f 40 00 nopl 0x0(%rax)
40a5b0: 49 89 c0 mov %rax,%r8
40a5b3: 48 89 d7 mov %rdx,%rdi
$ make
clang++ -o bench_avl_clang_opt3 bench.cpp -std=c++11 -stdlib=libc++ -lc++abi -O3 -DUSE_AVL
clang++ -o bench_avl_clang_opt2 bench.cpp -std=c++11 -stdlib=libc++ -lc++abi -O2 -DUSE_AVL
clang++ -o bench_set_clang_opt3 bench.cpp -std=c++11 -stdlib=libc++ -lc++abi -O3 -DUSE_SET
clang++ -o bench_set_clang_opt2 bench.cpp -std=c++11 -stdlib=libc++ -lc++abi -O2 -DUSE_SET
clang++ -o bench_btree_clang_opt3 bench.cpp -std=c++11 -stdlib=libc++ -lc++abi -O3 -DUSE_BTREE
clang++ -o bench_btree_clang_opt2 bench.cpp -std=c++11 -stdlib=libc++ -lc++abi -O2 -DUSE_BTREE
g++ -o bench_avl_gcc_opt3 bench.cpp -std=c++11 -O3 -DUSE_AVL
g++ -o bench_avl_gcc_opt2 bench.cpp -std=c++11 -O2 -DUSE_AVL
g++ -o bench_set_gcc_opt3 bench.cpp -std=c++11 -O3 -DUSE_SET
use std::fmt;
use std::boxed::Box;
use std::cmp::Ordering;
struct Tree<T> {
root: Option<Box<Node<T>>>
}
pub struct Node<T> {
left: Option<Box<Node<T>>>,
#![feature(overloaded_calls)]
use std::ops::Fn;
struct Closure
{
x: uint
}
impl Fn<(uint,), ()> for Closure
fn bar<T>(x: T)
{}
fn foo<T: ???>(x: T)
{
bar(x);
bar(x);
}
class foo_program_t
{
private:
GLint program_;
GLint matrix_loc_;
GLint color_loc_;
public:
void set_matrix(...);
void set_color(...);
Rusults for bpt_sequence<std::uint8_t> x 1
0.000489ms accumulate backward
0.000488ms accumulate backward by 1
0.000419ms accumulate backward by 10
0.000419ms accumulate backward by 100
0.000419ms accumulate backward by 1000
0.000419ms accumulate backward by 10000
0.000489ms accumulate forward
0.000488ms accumulate forward by 1
0.000419ms accumulate forward by 10