summaryrefslogtreecommitdiff
path: root/src/bin/perf-test.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-06-03 17:22:22 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-06-03 17:22:22 +0200
commit34c87bf04a9b70809eda125ca180de1d993d410e (patch)
tree805bf7556868f4958a73dd50b0a7996f98c54177 /src/bin/perf-test.rs
parent9d7d406107998c87525852032495f33f37155294 (diff)
Moved json parsing to be part of a module, with textmap equivalence
Diffstat (limited to 'src/bin/perf-test.rs')
-rw-r--r--src/bin/perf-test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/perf-test.rs b/src/bin/perf-test.rs
index 03da160..71044ad 100644
--- a/src/bin/perf-test.rs
+++ b/src/bin/perf-test.rs
@@ -17,7 +17,7 @@ fn main() {
fn normal_state() {
println!("Normal size state file");
let start_time = PreciseTime::now();
- let (settings, state) = match json::read_state_from_file(STATE_PATH) {
+ let (settings, state) = match input::json::read_state_from_file(STATE_PATH) {
Ok(ok) => ok,
Err(error) => {
println!("Error while parsing JSON file: {}", error);
@@ -31,7 +31,7 @@ fn normal_state() {
fn big_state() {
println!("Big state file");
let start_time = PreciseTime::now();
- let (settings, state) = match json::read_state_from_file(STATE_BIG_PATH) {
+ let (settings, state) = match input::json::read_state_from_file(STATE_BIG_PATH) {
Ok(ok) => ok,
Err(error) => {
println!("Error while parsing JSON file: {}", error);