Skip to content

Commit

Permalink
Using kruonis published in npm
Browse files Browse the repository at this point in the history
Kuronis available in https://www.npmjs.com/package/kruonis

Issue: None
  • Loading branch information
EdgarACarneiro committed Mar 7, 2021
1 parent 017976f commit 3b6d86a
Show file tree
Hide file tree
Showing 8 changed files with 5,868 additions and 38 deletions.
2 changes: 1 addition & 1 deletion benchmarks/src/Deletion.benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IBplusTree, Interval, FlatInterval } from '../../src';
import { addBenchmarkLogsAndRun } from "./Helpers";
import { getOrders, getAlphas } from './Settings';
import { Benchmark, Test } from '../kruonis';
import { Benchmark, Test } from 'kruonis';

let tree: IBplusTree<FlatInterval>;
let delInts: Array<Interval<FlatInterval>>;
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/src/Helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { appendFileSync } from "fs";
import { getOutputPath } from './Settings';
import { Benchmark, Test } from '../kruonis';
import { Benchmark, Test } from 'kruonis';

const prettyStats = (test: Test) => {
console.log(`${test.name} (${test.getStats().count} cycles):\n` +
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/src/Insertion.benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IBplusTree, Interval, FlatInterval } from '../../src';
import { addBenchmarkLogsAndRun } from "./Helpers";
import { getOrders, getAlphas } from './Settings';
import { Benchmark, Test } from '../kruonis';
import { Benchmark, Test } from 'kruonis';

const createTree = (intervals: Array<Interval<FlatInterval>>, order: number, alpha: number):
[IBplusTree<FlatInterval>, Array<Interval<FlatInterval>>] => {
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/src/Search.benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IBplusTree, Interval, FlatInterval } from '../../src';
import { addBenchmarkLogsAndRun } from "./Helpers";
import { getOrders, getAlphas } from './Settings';
import { Benchmark, Test } from "../kruonis";
import { Benchmark, Test } from "kruonis";

let tree: IBplusTree<FlatInterval>;
let searchInts: Array<Interval<FlatInterval>>;
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const DATASETS_DIR: string = 'benchmarks/si-datasets';
/**
* Output directory for the benchmarking logs
*/
const OUTPUT_DIR: string = 'benchmarks/kruonis-results-v2';
const OUTPUT_DIR: string = 'benchmarks/kruonis-results-v2-test';
/**
* Output file, in the afore mentioned output directory, for the logs
*/
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/src/TreeInsertion.benchmark.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IBplusTree, Interval, FlatInterval } from '../../src';
import { addBenchmarkLogsAndRun } from "./Helpers";
import { getOrders, getAlphas } from './Settings';
import { Benchmark, Test } from '../kruonis';
import { Benchmark, Test } from 'kruonis';


let tree: IBplusTree<FlatInterval>;
Expand Down

0 comments on commit 3b6d86a

Please sign in to comment.