Skip to content

Commit 297d8d0

Browse files
committed
ci: fix benchmark for change to import surface
1 parent 16fb1ce commit 297d8d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmark/impls.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const impls = readFileSync(__dirname + '/impls.txt', 'utf8')
44
.split('\n')
55
for (const impl of impls) {
66
if (impl.startsWith('lru-cache_')) {
7-
const LRUCache = require(impl)
7+
const req = require(impl)
8+
const LRUCache = req.LRUCache || req
89
exports[impl] = max => new LRUCache({ max })
910
} else if (impl.startsWith('mnemonist_')) {
1011
MnemonistLRUMap = require(impl + '/lru-map-with-delete')

0 commit comments

Comments
 (0)