benchmark: fix platform in basename-win32

It should say `win32` and not `posix`.

PR-URL: https://github.com/nodejs/node/pull/18320
Reviewed-By: James M Snell <jasnell@gmail.com>
pull/18334/merge
Ruben Bridgewater 2018-01-23 13:14:21 +01:00
parent ff21fb1624
commit d4015b8995
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
'use strict';
const common = require('../common.js');
const { posix } = require('path');
const { win32 } = require('path');
const bench = common.createBenchmark(main, {
pathext: [
@ -28,7 +28,7 @@ function main({ n, pathext }) {
bench.start();
for (var i = 0; i < n; i++) {
posix.basename(pathext, ext);
win32.basename(pathext, ext);
}
bench.end(n);
}