(self)
Benchmark each `to_format` method for two-sided column-only
        contexts.
Benchmark each `to_format` method for two-sided column-only
        contexts.
Benchmark each to_format method for two - sided column - only contexts .
def benchmark_to_format_two_column_only(self):
        """Benchmark each `to_format` method for two-sided column-only
        contexts."""
        for name in ("dict", "records", "df", "arrow"):
            for pivot in PerspectiveBenchmark.split_by_OPTIONS:
                if len(pivot) == 0:
                    continue
                test_meta = make_meta(
                    "to_format", "to_{0}_c_{1}".format(name, len(pivot))
                )
                view = self._table.view(split_by=pivot)
                func = Benchmark(
                    lambda: getattr(view, "to_{0}".format(name))(), meta=test_meta
                )
                setattr(self, "to_format_{0}".format(test_meta["name"]), func)
def benchmark_to_format_two_column_only ( self ) : for name in ( "dict" , "records" , "df" , "arrow" ) : for pivot in PerspectiveBenchmark . split_by_OPTIONS : if len ( pivot ) == 0 : continue test_meta = make_meta ( "to_format" , "to_{0}_c_{1}" . format ( name , len ( pivot ) ) ) view = self . _table . view ( split_by = pivot ) func = Benchmark ( lambda : getattr ( view , "to_{0}" . format ( name ) ) ( ) , meta = test_meta ) setattr ( self , "to_format_{0}" . format ( test_meta [ "name" ] ) , func )