| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4a6b678 commit f417add
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,23 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + require('../common'); | ||
| 4 | + | ||
| 5 | + // Minimal test for zlib benchmarks. This makes sure the benchmarks aren't | ||
| 6 | + // horribly broken but nothing more than that. | ||
| 7 | + | ||
| 8 | + const assert = require('assert'); | ||
| 9 | + const fork = require('child_process').fork; | ||
| 10 | + const path = require('path'); | ||
| 11 | + | ||
| 12 | + const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js'); | ||
| 13 | + const argv = ['--set', 'method=deflate', | ||
| 14 | + '--set', 'n=1', | ||
| 15 | + '--set', 'options=true', | ||
| 16 | + '--set', 'type=Deflate', | ||
| 17 | + 'zlib']; | ||
| 18 | + | ||
| 19 | + const child = fork(runjs, argv); | ||
| 20 | + child.on('exit', (code, signal) => { | ||
| 21 | + assert.strictEqual(code, 0); | ||
| 22 | + assert.strictEqual(signal, null); | ||
| 23 | + }); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments