-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsocket-io-3358.js
More file actions
38 lines (35 loc) · 1.05 KB
/
socket-io-3358.js
File metadata and controls
38 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const benchmarkDir = require('../benchmark_config')();
const runNodeRacer = require('../known-bugs/comparison-noderacer');
/**
* For the original version:
*
* for i in `seq 1 100`; do echo $i; node race.js; sleep .5; done
*
* Bug reproduction ratio: 100/100
*
* We used NodeRacer to show that some interleaving produces the correct response
*
* NodeRacer: 48 / 100 (48 out of 100 could provide the right answer)
*
* For the proposed fix:
*
* NodeRacer: 100 / 100 (100 out of 100 could provide the right answer)
*
*
* - Change lines 107-108 of lib/socket.js to alter between the buggy and fixed versions
*/
// header
console.log('iteration,runs,tool,benchmark,fails,firstfail');
runNodeRacer({
iterations: 1,
runs: 100,
strategy: 'NodeRacer',
strategyCommand: 'random',
benchmarkName: 'socket.io-client',
benchmarkDir: `${benchmarkDir}/open-issues/socket.io-client`,
command: 'node race.js',
commandLog: 'node race.js -c noderacer-settings.json ',
errorMessage: 'success',
silent: false,
noGlobal: true
});