/*
 * @Author: your name
 * @Date: 2024-08-16 09:30:14
 * @LastEditTime: 2024-08-16 14:15:14
 * @LastEditors: bogon
 * @Description: In User Settings Edit
 * @FilePath: /performance-test/src/utils/worker.js
 */
self.onmessage = function (event) {
  const data = event.data;
  const processedData = data.map((engine) => {
    return {
      xData: [...engine.xdata], // 假设需要将数据转换为数字
      yData: [...engine.ydata],
    };
  });

  self.postMessage(processedData);
};
