-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Cjen1/conspire
Conspire
- Loading branch information
Showing
56 changed files
with
6,109 additions
and
1,100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ libpaxos/ | |
|
||
perf.data | ||
trace* | ||
|
||
result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
(executables | ||
(names cli bench echo) | ||
(modules cli bench echo) | ||
(libraries ocons.core cmdliner)) | ||
(executable | ||
(name cli) | ||
(modules cli) | ||
(libraries ocons.core cmdliner)) | ||
(executable | ||
(name bench) | ||
(modules bench) | ||
(libraries ocons.core cmdliner)) | ||
(executable | ||
(name echo) | ||
(modules echo) | ||
(libraries ocons.core cmdliner)) | ||
(executable | ||
(name test_alloc) | ||
(modules test_alloc) | ||
(libraries core core_bench core_unix.command_unix)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
open Core | ||
open Core_bench | ||
|
||
type data = Nil | Node of data | ||
|
||
let rec make_data = function 0 -> Nil | n -> Node (make_data (n - 1)) | ||
|
||
let alloc_test = | ||
let test `init = | ||
let large = make_data 1000 in | ||
let extern = ref None in | ||
fun () -> | ||
extern := Some large | ||
in | ||
Bench.Test.create_with_initialization ~name:"alloc_with_reference" test | ||
|
||
let () = Command_unix.run (Bench.make_command [alloc_test]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.