-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download jetstream src from github instead of browserbench.org (#3196)
Downloading benchmark jetstream's source files one by one from https://browserbench.org by using wget is time consuming and not stable, this PR updates the scripts to download the files from https://github.com/mozilla/perf-automation.
- Loading branch information
Showing
3 changed files
with
68 additions
and
80 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 |
---|---|---|
@@ -1,23 +1,63 @@ | ||
diff -urN jetstream-org/HashSet.cpp jetstream/HashSet.cpp | ||
--- jetstream-org/HashSet.cpp 2020-10-30 04:12:42.000000000 +0800 | ||
+++ jetstream/HashSet.cpp 2022-01-24 17:11:08.619831711 +0800 | ||
diff --git a/benchmarks/JetStream2/wasm/HashSet.cpp b/benchmarks/JetStream2/wasm/HashSet.cpp | ||
index eca979b0..d1bf4d3d 100644 | ||
--- a/benchmarks/JetStream2/wasm/HashSet.cpp | ||
+++ b/benchmarks/JetStream2/wasm/HashSet.cpp | ||
@@ -22,8 +22,10 @@ | ||
|
||
#include <algorithm> | ||
#include <memory> | ||
+#include <limits> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
+#include <string.h> | ||
#include <sys/time.h> | ||
|
||
// Compile with: xcrun clang++ -o HashSet HashSet.cpp -O2 -W -framework Foundation -licucore -std=c++11 -fvisibility=hidden -DNDEBUG=1 | ||
@@ -76,7 +78,7 @@ | ||
@@ -76,7 +78,7 @@ template<typename ToType, typename FromType> | ||
inline ToType bitwise_cast(FromType from) | ||
{ | ||
typename std::remove_const<ToType>::type to { }; | ||
- std::memcpy(&to, &from, sizeof(to)); | ||
+ memcpy(&to, &from, sizeof(to)); | ||
return to; | ||
} | ||
|
||
|
||
diff --git a/benchmarks/JetStream2/wasm/TSF/gpc_code_gen_util.c b/benchmarks/JetStream2/wasm/TSF/gpc_code_gen_util.c | ||
index 56220fa7..7e3a365b 100644 | ||
--- a/benchmarks/JetStream2/wasm/TSF/gpc_code_gen_util.c | ||
+++ b/benchmarks/JetStream2/wasm/TSF/gpc_code_gen_util.c | ||
@@ -34,6 +34,8 @@ | ||
#include <errno.h> | ||
#include <dirent.h> | ||
|
||
+int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); | ||
+ | ||
/* code generation debugging */ | ||
|
||
/* NOTE: It is now the case that the count may be incremented multiple times, | ||
diff --git a/benchmarks/JetStream2/wasm/TSF/tsf_internal.h b/benchmarks/JetStream2/wasm/TSF/tsf_internal.h | ||
index 225a248b..ae39d3d3 100644 | ||
--- a/benchmarks/JetStream2/wasm/TSF/tsf_internal.h | ||
+++ b/benchmarks/JetStream2/wasm/TSF/tsf_internal.h | ||
@@ -429,6 +429,7 @@ struct tsf_fsdb { | ||
#endif | ||
tsf_fsdb_connection_t *connection; | ||
#endif | ||
+ uint32_t __padding; | ||
} remote; | ||
} u; | ||
tsf_limits_t *limits; | ||
diff --git a/benchmarks/JetStream2/wasm/TSF/tsf_ir_speed.c b/benchmarks/JetStream2/wasm/TSF/tsf_ir_speed.c | ||
index dd75c43e..79435c42 100644 | ||
--- a/benchmarks/JetStream2/wasm/TSF/tsf_ir_speed.c | ||
+++ b/benchmarks/JetStream2/wasm/TSF/tsf_ir_speed.c | ||
@@ -63,6 +63,9 @@ static void writeTest(const char *filename, | ||
Program_t *program; | ||
unsigned elementIndex; | ||
|
||
+ if (!(programIndex % 100)) | ||
+ printf("##programIndex: %u\n", programIndex); | ||
+ | ||
CS(program = tsf_region_create(sizeof(Program_t))); | ||
|
||
program->globals.len = numDecls + numDefns; |
This file was deleted.
Oops, something went wrong.