summaryrefslogtreecommitdiffhomepage
path: root/benchmarks
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-04-22 15:18:29 +0200
committerTyge Løvset <[email protected]>2021-04-22 15:18:29 +0200
commitc67a87749fb02c32e982dd309f62b54c1efde076 (patch)
tree731bb22bb4ab37968577853a9464433977e39f4e /benchmarks
parent0dfe69fa5dd7d4d9dded93d35106537e1ea76243 (diff)
downloadSTC-modified-c67a87749fb02c32e982dd309f62b54c1efde076.tar.gz
STC-modified-c67a87749fb02c32e982dd309f62b54c1efde076.zip
clist_X_splice*() now returns updated input iter. Added list_splice.c example.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/shootout4_crand.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/benchmarks/shootout4_crand.cpp b/benchmarks/shootout4_crand.cpp
index df13befd..5d5fd3d7 100644
--- a/benchmarks/shootout4_crand.cpp
+++ b/benchmarks/shootout4_crand.cpp
@@ -98,7 +98,7 @@ using namespace std;
int main(void)
{
- enum {N = 800000000};
+ enum {N = 2000000000};
uint64_t* recipient = new uint64_t[N];
static stc64_t rng;
init_state(rng.state, 12345123);
@@ -109,6 +109,7 @@ int main(void)
clock_t beg, end;
for (size_t ti = 0; ti < 4; ti++) {
+ init_state(rng.state, 12345123);
cout << endl << "ROUND " << ti+1 << endl;
beg = clock();
for (size_t i = 0; i < N; i++)
@@ -151,6 +152,7 @@ int main(void)
cout << "Next we do random number computations only, doing no work."
<< endl;
+ init_state(rng.state, 12345123);
uint64_t s = 0;
beg = clock();
for (size_t i = 0; i < N; i++)