(self, benchmark_name)
| 304 | self.con.execute(f"copy wide to 'wide_table.csv' (FORMAT CSV)") |
| 305 | |
| 306 | def benchmark(self, benchmark_name) -> BenchmarkResult: |
| 307 | result = BenchmarkResult(benchmark_name) |
| 308 | for _ in range(nruns): |
| 309 | duration = 0.0 |
| 310 | pandas_df = pd.read_csv('wide_table.csv') |
| 311 | start = time.time() |
| 312 | for _ in range(30): |
| 313 | res = self.con.execute("""select * from pandas_df""").df() |
| 314 | end = time.time() |
| 315 | duration = float(end - start) |
| 316 | del res |
| 317 | result.add(duration) |
| 318 | return result |
| 319 | |
| 320 | |
| 321 | class PandasAnalyzerBenchmark: |
no test coverage detected