Skip to content

Commit

Permalink
fixup! fixup! bench: add simple benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
nechaido committed Jul 28, 2017
1 parent ab4bbe8 commit c83d58c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchmark/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ const app = new jstp.Application('app', {
const server = jstp.net.createServer([app]);
server.maxConnections = maxConnections;

const socket = path.resolve(os.tmpdir(), 'jstp_benchmark_ipc');
const socket = path.join(
process.platform === 'win32' ? '\\\\.\\pipe' : os.tmpdir(),
'jstp-ipc-test'
);

const terminate = () => {
server.close();
Expand Down

0 comments on commit c83d58c

Please sign in to comment.