Skip to content

Commit

Permalink
Root State test
Browse files Browse the repository at this point in the history
  • Loading branch information
zwong91 committed Nov 10, 2022
1 parent f407d4c commit 2bd3035
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 257 deletions.
31 changes: 23 additions & 8 deletions src/tests/cyfs-stack-bench/src/bench/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ pub const NON_DELETE_OBJECT: &str = "non-inner-zone-diff-dec-delete-object";
pub const NON_OUTER_GET_OBJECT: &str = "non-outer-zone-diff-dec-post-object";
pub const NON_OUTER_POST_OBJECT: &str = "non-outer-zone-diff-dec-delete-object";

pub const ROOT_STATE_ALL_IN_ONE: &str = "root-state-all-in-one";
pub const PATH_OP_ENV_CROSS_DEC:&str = "path-op-cross-dec";
pub const SINGLE_OP_ENV_CROSS_DEC: &str = "single_op_env-cross-dec";
pub const GLOABL_STATE_ALL_IN_ONE: &str = "global-state-all-in-one";
pub const ROOT_STATE_MAP:&str = "root-state-inner-zone-map-all-in-one";
pub const ROOT_STATE_SET:&str = "root-state-inner-zone-set-all-in-one";
pub const LOCAL_CACHE_MAP: &str = "local-cache-map-all-in-one";
pub const LOCAL_CACHE_SET: &str = "local-cache-set-all-in-one";

pub const ROOT_STATE_GET_OPERATION: &str = "root-state-get-operation";
pub const ROOT_STATE_REMOVE_OPERATION: &str = "root-state-remove-operation";
pub const ROOT_STATE_INSERT_OPERATION: &str = "root-state-insert-operation";
pub const ROOT_STATE_COMMIT_OPERATION: &str = "root-state-commit-operation";
pub const ROOT_STATE_CREATE_NEW_OPERATION: &str = "root-state-inner-zone-create-new-operation";
pub const ROOT_STATE_GET_OPERATION: &str = "root-state-inner-zone-get-operation";
pub const ROOT_STATE_REMOVE_OPERATION: &str = "root-state-inner-zone-remove-operation";
pub const ROOT_STATE_INSERT_OPERATION: &str = "root-state-inner-zone-insert-operation";
pub const ROOT_STATE_COMMIT_OPERATION: &str = "root-state-inner-zone-commit-operation";

pub const STAT_METRICS_LIST: [&'static str; 7] = [
pub const STAT_METRICS_LIST: [&'static str; 17] = [
NON_ALL_IN_ONE,

NON_PUT_OBJECT,
Expand All @@ -26,4 +29,16 @@ pub const STAT_METRICS_LIST: [&'static str; 7] = [

NON_OUTER_GET_OBJECT,
NON_OUTER_POST_OBJECT,

GLOABL_STATE_ALL_IN_ONE,
LOCAL_CACHE_MAP,
LOCAL_CACHE_SET,
ROOT_STATE_MAP,
ROOT_STATE_SET,
ROOT_STATE_CREATE_NEW_OPERATION,
ROOT_STATE_GET_OPERATION,
ROOT_STATE_REMOVE_OPERATION,
ROOT_STATE_INSERT_OPERATION,
ROOT_STATE_COMMIT_OPERATION,

];
Loading

0 comments on commit 2bd3035

Please sign in to comment.